javac usage suggests -A is valid but ignores it

XMLWordPrintable

    • b75
    • generic
    • generic
    • Verified

      Jon,,

      Jonathan Gibbons wrote:


      >>The javac usage message goes out of its way to say that the key is optional
      >>
      >> -A[key[=value]] Options to pass to annotation processors
      >>
      >>but the code in JavacProcessingEnvironment.initProcessorOptions seems to
      >>ignore an isolated -A.
      >>So, would it not be better to simplify the usage message to
      >>
      >> -Akey[=value] Option to pass to annotation processors
      >>
      >>If you agree, I'll file an RFE to track this.
      >>
      >>
      >>


      Good catch; yes the "-A[key]..." vs "-Akey..." is a hold-over from apt.
      In JSR269, we define the options to have a nonempty key and do not
      include the "-A" (see Processor.getSupportedOptions) whereas apt
      includes the "-A" as part of the option claiming. Please file the bug.

      -Joe

            Assignee:
            Joe Darcy
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: