Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-6799634

Allow annotation processing of class files in jtreg directives

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • jtreg4.0
    • None
    • tools
    • None
    • team
    • generic
    • generic

    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.

      Attachments

        Issue Links

          Activity

            People

              jjg Jonathan Gibbons
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: