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
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