Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-12833

Unable to use Configuration classes in signed jar due to CGLIB

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.2.3
    • Component/s: Core

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                denis.carniel@loginpeople.com Denis Carniel
                Last updater:
                St├ęphane Nicoll
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 36 weeks, 4 days ago