Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Recompile when updating JRE  RSS feed

 
Rachil Chandran
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do I need to recompile my class files (compiled with JVM 1.4.x) when I am updating my JRE from version 1.4.x to something higher (1.4.y not 1.5).
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16026
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No - with new releases Sun always takes great care to ensure that programs from older Java versions work on the newer version.

Sometimes, with a major new release (for example 1.4 -> 1.5) some specific things do change, and you should look at the documentation of the newer version, which includes a document about version compatibility with previous releases. If you don't use those specific things, then you do not need to modify or recompile your code.

Minor new releases (for example 1.4.x -> 1.4.y) contain only bugfixes and don't require you to change your source code or recompile.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!