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 upgr
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.xwill support deployment onJDK 8runtimes for applications compiled againstJDK 7(with -target 1.7) or earlier. Note that it won’t supportJDK 8’s bytecode format (-target 1.8, as needed for lambdas); please upgrade toSpring Framework 4.0for that purpose.
Follow this link to the source article.