Bug 208886 - @Messages processor should verify that parameter names are distinct
@Messages processor should verify that parameter names are distinct
Status: RESOLVED WONTFIX
Product: platform
Classification: Unclassified
Component: -- Other --
7.2
All All
: P4 (vote)
: TBD
Assigned To: Antonin Nebuzelsky
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-27 09:45 UTC by Tomas Mysik
Modified: 2013-12-27 13:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2012-02-27 09:45:16 UTC
Not sure which component is the right one for this issue, sorry.

Sample:
@NbBundle.Messages({
    "# {0} - number",
    "# {1} - number",
    "SyncPanel.info.status=Download: {0} files, upload: {1} files."
})

There is no error visible in the editor, just the result is that the module cannot be compiled (since Bundle class contains method: static String SyncPanel_info_status(Object number, Object number))

Thanks.

Product Version: NetBeans IDE Dev (Build 20120227-3e31ce49f3d2)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01
System: Linux version 3.2.5 running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Jesse Glick 2012-02-28 00:11:10 UTC
It would be more polite to barf on this earlier rather than waiting for javac to fail.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo