google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

SecurityException in environments with signed jars #401

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A SecurityException is raised when a dynamic class is created in a package,
that contains signed classes.

To overcome this, we have to patch Guice and substitute the
net.sf.cglib.core.NamingPolicy and prefix the package of the generated
classes with a $ the same way, as it is done for classes from java.* packages.

It would be very nice, if either the naming policy were customizable or the
NamingPolicy would somehow validate the "base class" and choose another
package on its own, if the class is signed.

This behaviour was observed with Guice 1.0.

Original issue reported on code.google.com by Sebastia...@gmail.com on 7 Jul 2009 at 8:26