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 214721 - [72cat] Matisse generates wrong code for JTable
Summary: [72cat] Matisse generates wrong code for JTable
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 14:57 UTC by Michel Graciano
Modified: 2012-07-02 16:29 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (15.99 KB, application/zip)
2012-06-25 15:02 UTC, Michel Graciano
Details
Patch for release72. (2.68 KB, patch)
2012-06-25 17:15 UTC, Jan Lahoda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-06-25 14:57:15 UTC
I will attach a sample project and steps to reproduce.
Comment 1 Michel Graciano 2012-06-25 15:02:26 UTC
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) {
}
Comment 2 Michel Graciano 2012-06-25 15:04:24 UTC
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)
Comment 3 MackSix 2012-06-25 15:37:31 UTC
yup, it's broke.
Comment 4 Jan Stola 2012-06-25 15:48:23 UTC
> 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.
Comment 5 Jan Lahoda 2012-06-25 17:14:12 UTC
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.
Comment 6 Jan Lahoda 2012-06-25 17:15:05 UTC
Created attachment 121312 [details]
Patch for release72.
Comment 7 Quality Engineering 2012-06-26 04:57:54 UTC
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.
Comment 8 Tomas Zezula 2012-06-26 07:24:15 UTC
The patch seems good to me.
Comment 9 asenk 2012-06-26 08:28:26 UTC
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)
Comment 10 Jan Lahoda 2012-06-26 14:57:02 UTC
Thanks for verification and review. Pushed to release72:
http://hg.netbeans.org/releases/rev/0b81d6237951
Comment 11 Michel Graciano 2012-06-26 15:05:18 UTC
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)
Comment 12 Quality Engineering 2012-06-27 03:06:56 UTC
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.
Comment 13 asenk 2012-06-27 07:52:20 UTC
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)
Comment 14 Michel Graciano 2012-07-02 16:29:17 UTC
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)