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.

Bug 208886 - @Messages processor should verify that parameter names are distinct
Summary: @Messages processor should verify that parameter names are distinct
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
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
Exception Reporter:


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.