JDK-4921944 : RFE:make a public wrapper for com.sun.javac.Main somewhere in java.compile
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-09-12
  • Updated: 2003-09-12
  • Resolved: 2003-09-12
Related Reports
Duplicate :  
Description

Name: rmT116609			Date: 09/12/2003


A DESCRIPTION OF THE REQUEST :
It is nice to have a consistant programatic access to compiler in public api. Currently we are using com.sun.javac.Main for programatic compiling. But since com.sun api is not supported, it would be nice if we have such api in some place like java.compile, it could either be wrappers to com.sun.javac or concrete classes. Programatic compiling is too nice a feature to be placed in com.sun.*

 

JUSTIFICATION :
  To create more stable software which do not break in different OS or in different versions of JDK.



EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Predictable programatic compiling of java sources across various OSs and future versions of JDK.

ACTUAL -
com.sun.javac is not supported.

CUSTOMER SUBMITTED WORKAROUND :
use com.sun.javac which are not supported and pray that they still work in future versions of JDK.
(Incident Review ID: 207158) 
======================================================================

Comments
EVALUATION See jSR 199
03-09-2004

PUBLIC COMMENTS Another request for JSR 199.
03-09-2004