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.
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.
- duplicates
-
JDK-6258929 AnnotationProcessorEnvironment.getOptions doesn't return options as key/values
- Closed