Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6471011

AnnotationProcessorEnvironment does not parse options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • tools
    • apt
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0-rc-fastdebug"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-fastdebug-b96)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-fastdebug-b96-debug, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      According to the MIrrorAPI docs, any options passed in on the command line should be parsed into a map of key/values pairs that are accessable from AnnotationProcessorEnvironment.getOptions():

      http://java.sun.com/j2se/1.5.0/docs/guide/apt/mirror/com/sun/mirror/apt/AnnotationProcessorEnvironment.html

      However, passed options are not parsed at all. Both keys and values appear in the keySet of the map joined by an = sign. The values in the map are all set to null.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Keys and values should be separated.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            darcy Joe Darcy
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: