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: | Need a way to pass action specific properties to BaseActionProvider.invokeAction() | ||
---|---|---|---|
Product: | java | Reporter: | J Bachorik <yardus> |
Component: | Project | Assignee: | J Bachorik <yardus> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | apireviews, jglick |
Priority: | P3 | Keywords: | API, API_REVIEW_FAST |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
patch
patch(update 1) - completed the javadoc patch(update 2) - fixed typos in arch.xml patch(update 3) |
Description
J Bachorik
2012-01-05 10:11:02 UTC
Created attachment 114654 [details]
patch
Created attachment 114655 [details]
patch(update 1) - completed the javadoc
Created attachment 114658 [details]
patch(update 2) - fixed typos in arch.xml
[JG01] If you try to build Javadoc with this patch, you will find that <class> may not be given a nested type. BTW apichanges.xml <date> should be the date on which you actually integrate. It is a good idea to set this to one week from when you submit the patch, so you do not forget to update it. [JG02] It is meaningless to mark an interface "static". [JG03] "[implementer cannot] rely on the properties not being modified [...so] an immutable or expendable copy should be returned" contradicts itself. If they might be modified, then an immutable copy should not be returned, because the attempt to modify it will throw an exception. Make up your mind. [JG04] Prefer Map<String,String> to Properties in API contracts which logically deal with strings, since Properties implements Map<Object,Object> and has various other undesirable qualities. [JG05] An API review diff should normally be accompanied by at least one usage of the proposed API. Created attachment 114728 [details]
patch(update 3)
Re.[JG01]
Fixed
Re. [JG02]
Adjusted
Re. [JG03]
Updated javadoc to recommend returning an expendable copy
Re. [JG04]
Changed the signature to Map<String, String>
Re. [JG05]
This one is a bit tricky - the only usage I have right now is in the work-in-progress profiler actions rewrite. The rewrite has not been finished yet and the diff of that rewrite is pretty big and spans few profiler projects.
I might try to extract a sample usage based on the real usage in profiler if you insist.
JG05 - not strictly necessary, just include a link to usage diffs if you have them. This change is rendered obsolete by the work going on in #206196. Closing as won't fix - thanks for the review anyway. |