Migrating from Java 1.3 to Java 6.0

Hello!

I plan to migrate from an old Java 1.3 to Java 6.0.

Can anybody tell me what kind of changes need to be done to get the old code working? Do I need to convert my code to Generics?

Is there a tool that does that (usually I use Eclipse)?

Thanks in advance:-)

[294 byte] By [tieka] at [2007-11-27 10:47:17]
# 1

> Can anybody tell me what kind of changes need to be

> done to get the old code working?

Ideally none. However, you might want to get rid of any deprecated APIs being used in the code.

> Do I need to convert my code to Generics?

Not necessary; that's totally up to you do it.

> Is there a tool that does that (usually I use

> Eclipse)?

Not that I know of.

aniseeda at 2007-7-28 20:24:03 > top of Java-index,Java Essentials,New To Java...
# 2

Install 1.6 attempt to compile and start working through the compile errors, and then compile again with -deprecation until those are gone too. If you want an idea of what has changed look through the API documentation for 1.4, 1.5, and 1.6 and you can find detailed descriptions of what has changed at every level.

You probabaly should change it to use Generics, but you don't really have to, but that is only a small part of the changes.

masijade.a at 2007-7-28 20:24:03 > top of Java-index,Java Essentials,New To Java...
# 3

You might find the newer version of Java allows you to 'clean up' some older code.

Brightness86a at 2007-7-28 20:24:03 > top of Java-index,Java Essentials,New To Java...