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.
I have an NetBeans Platform module with an action specified like this: package com.kovica; @ActionID( category = "MyCategory", id = "com.kovica.MyAction" ) @ActionRegistration( displayName = "#CTL_ACTION", asynchronous = true, iconBase = "icon.png" ) @ActionReferences({ @ActionReference(path = "Shortcuts", name = "D-G"), @ActionReference(path = "Toolbars/MyToolbar", position = 6) }) @NbBundle.Messages("CTL_ACTION=ACTION STRING") public class MyAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { // DO SOMETHING } } if I do code formatting I get: package com.kovica; @ActionID( category = "MyCategory", id = "com.kovica.MyAction" ) @ActionRegistration( displayName = "#CTL_ACTION", asynchronous = true, iconBase = "icon.png" ) @ActionReferences({ @ActionReference(path = "Shortcuts", name = "D-G") , @ActionReference(path = "Toolbars/MyToolbar", position = 6) }) @NbBundle.Messages("CTL_ACTION=ACTION STRING") public class MyAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { // DO SOMETHING } } Earlier versions did not do that.
Just noticed this myself too. Voted
The the comma is at the beginning of next annotation it's considered correct. I.e. following form instead is not reformatted: @ActionReferences({ @ActionReference(path = "Shortcuts", name = "D-G") ,@ActionReference(path = "Toolbars/MyToolbar", position = 6) })
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/0c0ccf9905d2