Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDK1.3 and JDK1.1

 
Ian Yang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In principle, if I write a code using JDk1.1, it should always be compiled and run successfully using jdk1.3, right ?
Now, if it uses some depracate methods, will JDK1.3 just give warning but still compile/run well, or will JDK1.3 make the compilation completely fail ? Is there any web site resource giving a list of any deprecate method/class for jdk1.1 ?
Thanks,
Ian
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think until now all the deprecated methods were not deleted.
so, i think you will have no problem running it under 1.3 .
you will only get a warning that u are using deprecated methods.
some of the bartenders may know of some deprecated mehtods that were deleted, but in my opinion , sun most of the time keeps backwards (or forward) compatibility.
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the most part, java code is upward compatible from one release to the next. However, there can be incompatible changes. For example, I've not looked at 1.4, but I suspect the addition of the assert statement may break some earlier code. And in moving form JDK 1.2.2 to 1.3, there are some changes in Swing that can affect programs, although they may involve less frequently used features. As I recall, Sun avoids making changes that will break code when they change the third level, e.g, from 1.3.0 to 1.3.1, but will sometimes make such changes when they change the second level, e.g, 1.2.2 to 1.3.0. My working assumption is that code requires testing to be moved forward from 1.1 to 1.2, 1.2 to 1.3, and 1.3 to 1.4, but that the effort required fix problems will be small.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic