-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 8 introspection causes breakage with FreeMarker Configuration bean [SPR-12448] #17053
Comments
Juergen Hoeller commented I'm afraid I can't reproduce this: It works fine against Spring 4.1.2 on JDK 8u20 at least. Could you please specify your JDK version and your Spring version, and post the actual IntrospectionException that you're getting? Juergen |
George Turner Jr commented We're able to reproduce with JDK 8u25, Spring 4.0.5.RELEASE. Here's the full stack trace: |
Juergen Hoeller commented I'm afraid this works for me on JDK 8u25 as well. Any chance you could run your local setup against Spring 4.1.2 and/or 4.0.8? BTW, which FreeMarker version are you using there? Juergen |
George Turner Jr commented I'm using Freemarker 2.3.20. It looks like this is resolved by moving to a later Spring version, 4.1.2 was successful for me. Thanks for the help. |
Juergen Hoeller commented Alright, I'll assume that this has been fixed through other recent changes in both the 4.1.x and the 4.0.x line then. I'll add corresponding unit tests to both branches to be on the safe side and to avoid regressions in the future. Juergen |
Aaron Digulla commented The underlying issue is that Java 8 enforces that a getter and a setter in a class have to have the same type. So you can't do this anymore:
It has to be |
George Turner Jr opened SPR-12448 and commented
When using the following configuration for a Freemarker template in Java 8, Spring throws a java.beans.IntrospectionException. This configuration works fine with Java 7.
Affects: 4.0.5
Issue Links:
Referenced from: commits 282aded, 1f45dd2
Backported to: 4.0.8
The text was updated successfully, but these errors were encountered: