There are some pretty intense discussions going on about this, and the
story hasn't yet been finished ...

On the other hand, the "new" compiler entry point has an absolutely
horrible feature (from the point of view of Jasper) -- you have to modify
System.out and System.err to redirect the compiler output.  Unless system
variables are unique per classloader (they weren't last time I checked),
that means we can only do one compile at a time :-(.

An additional note of interest to Ant developers - there is evidence that
running the compiler (either old or new) leaves a fair amount of cruft
lying around in static variables, after the compile has completed. The
recommended solution is to load the compiler itself in its own class
loader, so that you can throw it all away afterwards.  That's the approach
we'll take when modifying Jasper.

Craig


On Fri, 20 Jul 2001, Sam Ruby wrote:

> FYI.  Bye bye "classic" compiler.
> 
> Ant looks safe (it uses reflection), but Jasper looks like it will be
> affected.
> 
> - Sam Ruby
> 
> ---------------------- Forwarded by Sam Ruby/Raleigh/IBM on 07/20/2001
> 07:30 AM ---------------------------
> 
> Davanum Srinivas <[EMAIL PROTECTED]> on 07/20/2001 06:16:57 AM
> 
> Please respond to [email protected]
> 
> To:   [email protected]
> cc:
> Subject:  sun.tools.javac.Main will be removed from JDK1.4
> 
> 
> 
> FYI,
> 
> -----Original Message-----
> From: Leclair, Donald
> Sent: Thursday, July 19, 2001 7:15 PM
> To: J2EE Communications
> Subject: Message 14: Class change impact
> 
> 
> Sent: Thursday, July 19, 2001 7:08 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Class change impact
> 
> 
> Dear Licensee,
> 
> The Java(TM) 2 Platform, Standard Edition team will be making
> a change that might impact you.
> 
> The change is that the class "sun.tools.javac.Main"
> (used for compiling java classes) will be removed in J2SE 1.4.
> This is not a public API change. If you depend on this class
> you may be impacted.
> 
> If you have questions, please follow-up with your designated
> Licensee Engineer.
> 
> Regards,
> Jill Smith
> Java Partner Engineering
> 
> =====
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 
> 

Reply via email to