The FastClass.Generator.create method needs to use the
patch implemented for the protection domain by
assigning the protection domain source as follows.
This will make it compatible with WebStart and Hibernate:
public FastClass create() {
setNamePrefix(type.getName());
if (type.getName() != null) {
try {
setProtDomainSrc(Class.forName(type.getName()));
} catch (ClassNotFoundException e) {
e.printStackTrace();
throw new RuntimeException("Class Not
Found!!!", e);
}
}
return (FastClass)super.create(type.getName());
}
Logged In: NO
See
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1365
for a working patch that does this at all necessary places