• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

spring and JDK version

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see the following spring and JDK version requirement:

JDK 6+ for Spring 4
JDK 5+ for Spring 3

Just have a dumb question: so if I use Spring 4 and my installed JDK is 6+, most of java code are Java 6+ style, but some legacy java code is still using  Java 2 or pre Java 5...   Does that break this compatibility requirement ?
 
Marshal
Posts: 27214
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. The requirement is a requirement for the JDK version. It says nothing about when you wrote the code. And Java is designed to be forward-compatible, so there's really nothing like "Java 2 code". You may be using things which have been improved upon since Java 2, but they will still run under any later version of Java.
 
Sheriff
Posts: 22649
126
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One warning though - Oracle has actually been removing parts of what JSE provided. Before Java 11 there wasn't anything major, but in Java 11 all of the JEE functionality like JAXB and JAF (Java Activation Framework) have been removed. You need to explicitly add these as a dependency to your project.

An overview of what has been removed since Java 8: https://robtimus.github.io/whats-new-in-java/removed.html.
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic