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 will attach a sample project and steps to reproduce.
Created attachment 121303 [details] Sample project To reproduce the issue, do as follow: 1. Open the attached project and the form Issue214721.java 2. Adit anything at the form and save (to regenerate the code), for example, change the mnemonic for 'Fechar' button; The generated code will have a wrong code generate at line 53/54: (Object[][] x0, Object[] x1) { }
Verified the issue at: Product Version: NetBeans IDE 7.2 RC1 (Build 201206141830) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb) and Product Version: NetBeans IDE Dev (Build 20120622-e5431dd3cb9a) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb) and it works fine for: Product Version: NetBeans IDE 7.1 (Build 201112051121) Java: 1.6.0_31; Java HotSpot(TM) Client VM 20.6-b01 System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb)
yup, it's broke.
> The generated code will have a wrong code generate at line 53/54: > > (Object[][] x0, Object[] x1) { > } GUI Builder doesn't generate this code. It appears during replacement of fully-qualified names. I am reassigning this issue to Java/Source for evaluation.
Fix in trunk: http://hg.netbeans.org/jet-main/rev/6a16d8fc7461 Unfortunately, this won't apply cleanly to release72, so I will attach the patch for 7.2.
Created attachment 121312 [details] Patch for release72.
Integrated into 'main-golden', will be available in build *201206260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6a16d8fc7461 User: Jan Lahoda <jlahoda@netbeans.org> Log: #214721: not running importFQNs for synthetic constructors.
The patch seems good to me.
verified in trunk: Product Version: NetBeans IDE Dev (Build 201206260002) Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b05 System: Linux version 3.2.0-25-generic-pae running on i386; UTF-8; en_US (nb)
Thanks for verification and review. Pushed to release72: http://hg.netbeans.org/releases/rev/0b81d6237951
Verified at trunk too. Product Version: NetBeans IDE Dev (Build 20120626-8c6d5b400f5c) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb)
Integrated into 'releases', will be available in build *201206262201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/0b81d6237951 User: Jan Lahoda <jlahoda@netbeans.org> Log: #214721: not running importFQNs for synthetic constructors.
verified in 7.2 Product Version: NetBeans IDE 7.2 RC1 (Build 201206262201) Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b05 System: Linux version 3.2.0-25-generic-pae running on i386; UTF-8; en_US (nb)
Product Version: NetBeans IDE 7.2 (Build 201206291011) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb)