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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6 b74Fixed
Description
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
SUGGESTED FIX ######### File: ./common/Release.gmk ######### (cd ./common && sccs diffs -w -s -b Release.gmk) ------- Release.gmk ------- 291,292d290 < javax/annotation/processing \ < javax/lang/model \ 413,414d410 < $(ECHO) "javax/annotation/processing/" >> $@ < $(ECHO) "javax/lang/model/" >> $@
2006-02-18

EVALUATION The packages javax.annotation.processing and javax.lang.model including all their sub-packages have been added to rt.jar.
2006-02-18

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.
2006-02-17

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.
2006-02-02

EVALUATION Also useful for programming against other javac-related APIs.
2005-12-13

EVALUATION A good idea to ease annotation processor developement; should be addressed in Mustang.
2005-10-21