File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JDK1.3 and JDK1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JDK1.3 and JDK1.1" Watch "JDK1.3 and JDK1.1" New topic

JDK1.3 and JDK1.1

Ian Yang
Ranch Hand

Joined: Nov 27, 2001
Posts: 44
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 ?
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
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

Joined: Feb 22, 2001
Posts: 399
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.
I agree. Here's the link:
subject: JDK1.3 and JDK1.1
It's not a secret anymore!