JDK-4223289 : Standard API to the JAVAC compiler
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-03-24
  • Updated: 2000-01-11
  • Resolved: 2000-01-11
Related Reports
Duplicate :  
Description

Name: dbT83986			Date: 03/23/99


How about a standard API to the JAVAC compiler? 

I have been looking at the BEANBOX demo with a view to potentially developing something along similar lines, and have noted that the method
used to invoke the compiler to generate the adapter classes is to execute JAVAC through the operating system shell. 

A really nice addition to the JDK would be an API to wrap up the compiler, enabling it to be invoked directly with method calls passing parameters
as appropriate. Status information could be returned to the caller wrapped up in a class containing success indication, array of compilation errors
(with source locations) etc.
(Review ID: 55433)
======================================================================