United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6328941 : Add JSR 269 packages to default classpath

Details
Type:
Enhancement
Submit Date:
2005-09-26
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2006-03-02
Component:
core-libs
OS:
generic
Sub-Component:
javax.annotation.processing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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



Hardware and Software, Engineered to Work Together