This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||Missing support for annotation processor options (-Akey=value)|
|Product:||java||Reporter:||Jesse Glick <jglick>|
|Component:||Classpath||Assignee:||Dusan Balek <dbalek>|
|Issue Type:||DEFECT||Exception Reporter:|
|Bug Depends on:||181555|
Description Jesse Glick 2010-03-02 07:33:35 UTC
AnnotationProcessingQuery.Result should be able to specify a Map<String,String> processorOptions corresponding to the -A options passed to javac. Marking P2 because it will be harder to change the API after a release. Anyway it should be simple to implement.
Comment 2 Jesse Glick 2010-03-03 12:59:33 UTC
[JG01] Should not be marked as compatible when you are adding an interface method. Of course this is prerelease code. [JG02] processorOptions Javadoc should be clear that values can be null, as specified in ProcessingEnvironment.getOptions. (Would be good to link to that Javadoc BTW.) When in main-silver I will update the impl in contrib/autoproject.java, which should be an easy change (am already sniffing -A options from javac).
Comment 3 Jan Lahoda 2010-03-04 03:01:45 UTC
(In reply to comment #2) > [JG01] Should not be marked as compatible when you are adding an interface > method. Of course this is prerelease code. I think that the incompatible flag should be used when doing change incompatible with previous release(s), not doing incompatible changes to API introduced in the same release. > > > > When in main-silver I will update the impl in contrib/autoproject.java, which > should be an easy change (am already sniffing -A options from javac). I think that contrib/autoproject can be updated anytime, even before this change is part of main-silver (the method will never be called before that, but should not cause any problems, AFAIK).
Comment 4 Dusan Balek 2010-03-04 09:26:28 UTC
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/2e6243ee12a5
Comment 5 Quality Engineering 2010-03-04 22:10:06 UTC
Integrated into 'main-golden', will be available in build *201003050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2e6243ee12a5 User: Dusan Balek <firstname.lastname@example.org> Log: Issue #181421: Missing support for annotation processor options (-Akey=value) added