JDK 8 support for Spring 2.5.x [SPR-11899]
See original GitHub issueJocelyn N’TAKPE opened SPR-11899 and commented
I know Spring 2.X is no longer supported but is it possible to release a new version supporting JDK 1.8.
static {
javaVersion = System.getProperty("java.version");
// version String should look like "1.4.2_10"
if (javaVersion.indexOf("1.7.") != -1) {
majorJavaVersion = JAVA_17;
}
else if (javaVersion.indexOf("1.6.") != -1) {
majorJavaVersion = JAVA_16;
}
else if (javaVersion.indexOf("1.5.") != -1) {
majorJavaVersion = JAVA_15;
}
else {
// else leave 1.4 as default (it's either 1.4 or unknown)
majorJavaVersion = JAVA_14;
}
}
No further details from SPR-11899
Issue Analytics
- State:
- Created 9 years ago
- Comments:5
Top Results From Across the Web
WAS 8.5 Java 8 and Spring 2.5.6 - Stack Overflow
First i thought Spring 2.5.6 and Java 8 compatibility issue, so i tried with WAS8.5 and java7 and later with Java6. But still...
Read more >Compatibility Guide for JDK 8 - Oracle
This document discusses types of potential incompatibilities relating to the JDK 8 release of the Java platform.
Read more >Spring Boot 2.5.8 available now
Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription. Learn more. Upcoming events.
Read more >Spring And Spring Boot Versions - Marco Behler
What Java version does the latest Spring Boot support? ... Spring 5.3.x has long-term support provided on JDK 8, JDK 11 & JDK...
Read more >Spring Framework - endoflife.date
Release Released Active Support
6.0 3 weeks and 5 days ago. (16 Nov 2022) Ends in 1 year and 8 months. (31 Aug 2...
5.3...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
C D commented
You could also just overwrite this class. That is what I did on two projects that are still using Spring 2.X. After downloading the source add the following: public static final int JAVA_18 = 5; … static{ javaVersion = System.getProperty(“java.version”); // version String should look like “1.4.2_10” if(javaVersion.contains(“1.8.”)){ majorJavaVersion = JAVA_18; // System.out.println("JAVA_VERSION: " + javaVersion); }else if(javaVersion.indexOf(“1.7.”) != -1){ majorJavaVersion = JAVA_17; }else if(javaVersion.indexOf(“1.6.”) != -1){ majorJavaVersion = JAVA_16; }else if(javaVersion.indexOf(“1.5.”) != -1){ majorJavaVersion = JAVA_15; }else{ // else leave 1.4 as default (it’s either 1.4 or unknown) majorJavaVersion = JAVA_14; } }
Jocelyn Ntakpe commented
Thanks for the advice. Indeed will try 3.2.9 migration.