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

Summary: @Messages processor should verify that parameter names are distinct
Product: platform Reporter: Tomas Mysik <tmysik>
Component: -- Other --Assignee: Antonin Nebuzelsky <anebuzelsky>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.