----- Original Message -----
From: "Russell Butek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 1:20 PM
Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/utils/compiler
Javac.java


> Hmmm...   sun.tools.javac.Main is deprecated in JDK1.4.  This means it'll
> go away at some point (in a few years, so maybe we don't have to worry
> about it).  When it DOES go away, what will we do, then?
>

well, the first thing that will happen is that ant will stop compiling Java
code, so all ant based projects will not need to worry about their own
internal uses.

Java1.4 takes away the classic compiler "com.sun.tools.javac.Main"; in
ant1.5b2 anyone who specifies classic in their compiler options for <javac>
on 1.4 gets a message "upgrading you to modern" and we keep going; too many
of the GUMP projects were requesting classic and not working on Java1.4 for
this reason.

I believe the future is going to give Java developers a better way of
compiling apps, maybe akin to CodeDOM, but maybe just a version of Javac
that a) doesnt consume lots of static data the moment it is instantiated and
b) is thread safe. Current javac is not thread-safe, but you knew that,
right?

Anyhows, as and when sun.tools.javac.Main goes away, you will be able to cut
and paste the replacement from ant.

Alternatively, we could factor out the java compilation adapters into a
jakarta-commons lib, so that other tools that compile code (Tomcat springs
to mind) can share code.

-steve




Reply via email to