Denis Carniel opened SPR-12833 and commented
When using Java Configuration from a signed jar (in a multi-module project), I get an error stating that the class enhanced by CGLIB doesn't have the same signer information than other classes from the same package.
Looking into ConfigurationClassPostProcessor and related classes code it appears that classes annotated with @Configuration will always be enhanced using CGLIB (I've plenty of other classes in the same module that work fine but they are apparently enhanced using JDK proxy).
Is there a way to use Java Configuration from a signed jar ? Or to have @configuration classes enhanced using JDK proxy ? (I tried giving them interfaces with no luck).
Affects: 4.1.4
Reference URL: https://stackoverflow.com/questions/29162865/use-java-configuration-in-signed-jar
Issue Links:
1 votes, 3 watchers
Denis Carniel opened SPR-12833 and commented
When using Java Configuration from a signed jar (in a multi-module project), I get an error stating that the class enhanced by CGLIB doesn't have the same signer information than other classes from the same package.
Looking into ConfigurationClassPostProcessor and related classes code it appears that classes annotated with
@Configurationwill always be enhanced using CGLIB (I've plenty of other classes in the same module that work fine but they are apparently enhanced using JDK proxy).Is there a way to use Java Configuration from a signed jar ? Or to have
@configurationclasses enhanced using JDK proxy ? (I tried giving them interfaces with no luck).Affects: 4.1.4
Reference URL: https://stackoverflow.com/questions/29162865/use-java-configuration-in-signed-jar
Issue Links:
1 votes, 3 watchers