Description
When JSR 269 annotation processing was added to javac, javac gained the ability to operate directly on class files in addition to source files. That is, the file argument on the right hand side of the command line could be names of types, names that don't end in ".java". However, the @compile directive in jtreg checks and enforces that such non "*.java" command line arguments do not occur. To use the abilities of the platform (and to test javac operating on class files!), there should be some @compile-like directive which allows class file arguments. Keeping the check by default for @compiile is probably prudent, but something like "@compile/process" or "@process" should be supported.
Having such a feature would have greatly simplified testing of 6498938.
Having such a feature would have greatly simplified testing of 6498938.
Attachments
Issue Links
- relates to
-
JDK-6498938 Faulty comparison of TypeMirror objects in RoundEnvironment.getElementsAnnotatedWith implementation
- Closed
-
CODETOOLS-6809055 Set test.src and test.classes information for @compile tasks
- Resolved
-
JDK-6911854 Update TestElementsAnnotatedWith.java to use @compile/proc
- Closed