JDK-6328941 : Add JSR 269 packages to default classpath
Type:Enhancement
Component:core-libs
Sub-Component:javax.annotation.processing
Affected Version:6
Priority:P3
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2005-09-26
Updated:2017-05-19
Resolved:2006-03-02
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
When writing annotation processors, it would be helpful if javac had an option to put tools.jar on the classpath; this would avoid having to explicitly add a path to a JDK-specific jar file when developing annotation processors.
Comments
EVALUATION
The packages javax.annotation.processing and javax.lang.model including all their sub-packages have been added to rt.jar.
SUGGESTED FIX
In Release.gmk:
Remove javax/annotation/processing and javax/lang/model from TOOLS variable.
Remove the same packages from $(NOT_RT_JAR_LIST) target.
17-02-2006
EVALUATION
To address the issues in this bug, the JSR 269 API will instead be added to the default classpath, removing the need for a javac option.
02-02-2006
EVALUATION
Also useful for programming against other javac-related APIs.
13-12-2005
EVALUATION
A good idea to ease annotation processor developement; should be addressed in Mustang.