question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JDK 8 support for Spring 2.5.x [SPR-11899]

See original GitHub issue

Jocelyn 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:closed
  • Created 9 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
spring-projects-issuescommented, Jan 11, 2019

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; } }

0reactions
spring-projects-issuescommented, Jan 11, 2019

Jocelyn Ntakpe commented

Thanks for the advice. Indeed will try 3.2.9 migration.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found