Allows to provide a Class, from which the ProtectionDomain
is taken and applied to the generated class, e.g. a
subclass.
This avoids the problem of not being able to
create/load a subclass of an existing signed class,
lifting the requirement to sign cglib itself.
Ref: Hibernate issue HHH-1365
Patch for cglib 2.1.3
Logged In: NO
See
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1365
for another line of code that might be needed
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches - read-only"
This patch solves signed jar issues (with hibernate & Spring framework). It can be applied to version 2.2. But net.sf.cglib.reflect.FastClass.Generator needs to be patched too. Add a call to 'setProtDomainSrc' in 'setType' method of inner class 'Generator' of class 'FastClass'.
public void setType(Class type) {
this.type = type;
this.setProtDomainSrc(type); // new line added
}