• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

spring and JDK version

 
Ranch Hand
Posts: 152
  • 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 ?
 
Sheriff
Posts: 26770
82
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.
 
Marshal
Posts: 22446
121
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic