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.
There is no particular reason to forbid use of @Messages on fields, it was just not initially thought useful. In fact sometimes it is desirable; either code traditionally kept a localized String as a field (better refactored to be inlined of course), or the field initializer is of an anonymous inner class which uses a bundle string in some method.
Created attachment 114308 [details] Proposed patch
Please review.
Right, I need that for issue 190129 as well.
Makes sense; see the diff to the existing GroupOptionProcessor.
core-main #a4ea1f7d8d68
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a4ea1f7d8d68 User: Jesse Glick <jglick@netbeans.org> Log: #206543: permit @NbBundle.Messages on fields.