has been released a while ago. It is an alpha release, even though the files you get via the download page are named j2sdk-1_5_0-beta-*.

It is currently provided without documentation.
which makes it kind of useless for the stuff I intended to do - namely making sure that Ant works well with it and maybe make it use some of the new features.

The first thing I've noticed is a warning

javac: source release 1.4 requires target release 1.4
when trying to bootstrap Ant.

Ant's build file does not set the -source argument at all, so it is supposed to default to 1.3 (in JDK 1.4 it does) - apparently JDK 1.5's javac defaults to -source 1.4 as it also compiles to -target 1.4 even though Ant explicitly requests -target 1.1. Without docs I can only assume that this is a bug in the JDK and won't change Ant at this point - in particular since the warning goes away when I explicitly set -source 1.3 but -target 1.1 still gets ignored.

Ant's own test suite passes, Ant recognizes 1.5 and treats it as JDK 1.4, not much more we can do for now.

Comparing the command line help output it seems javac has now a built-in lint, that looks interesting and should be supported by Ant directly:

  -Xlint                     Enable recommended warnings
  -Xlint:{all,deprecation,unchecked,switchcheck,path,serial,\
          finally,-deprecation,-unchecked,-switchcheck,-path,\
          -serial,-finally}Enable or disable specific warnings

path: /en/Java | #