I am currently migrating my application from Java 7 to Java 8 and currently I am running the Spring 3.1.6 jar. Would this be compatible with Java 8 or I need to upgrade the Spring jar ?
I understand that the Spring 4x version has natural support for Java 8, but this is time critical and I am seeking to change as little jars as I can.
解决方案
Basically Spring 3.x versions supports up to Java-7 only. If you want to migrate to Java-8 you should use Spring 4.x version.
However some spring release notes says that the Spring Framework 3.2.x
will support deployment on JDK 8 runtimes for applications compiled
against JDK 7 (with -target 1.7) or earlier. Note that it won’t
support JDK 8’s bytecode format (-target 1.8, as needed for lambdas);
please upgrade to Spring Framework 4.0 for that purpose.
Follow this link to the source article.