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 196864 - Wrong code generated from Swing GUI Form editor if the JTable's model customizer contains Infinity, -Infinity or NaN in some Double column.
Summary: Wrong code generated from Swing GUI Form editor if the JTable's model customi...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 17:49 UTC by mc1100
Modified: 2011-09-14 08:03 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 mc1100 2011-03-18 17:49:27 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02
Comment 1 Jan Stola 2011-09-07 13:16:28 UTC
Reproducible:

1. Create some GUI form.
2. Insert JTable into the form.
3. Select the inserted JTable.
4. Press ... button next to 'model' property in Properties window.
5. Set the type of the first column to Double.
6. Set the type of the second column to Float.
7. Switch to Default Values tab.
8. Type 'Infinity', '-Infinity' and 'NaN' into the cells of the first column.
9. Type 'Infinity', '-Infinity' and 'NaN' into the cells of the second column.
10. Close the dialog using OK button.
11. Check the generated source code:

new Double(Infinity), new Double(-Infinity), new Double(NaN)
new Float(Infinity), new Float(-Infinity), new Float(NaN)

is generated instead of

Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NaN
Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, Float.NaN
Comment 2 Theofanis Oikonomou 2011-09-09 12:54:15 UTC
Changeset: f22f00c50de2
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2011-09-09 14:48
Message:   
Issue #196864 - Wrong code generated from Swing GUI Form editor if the JTable's model customizer contains Infinity, -Infinity or NaN in some Double column.
Comment 3 Theofanis Oikonomou 2011-09-09 14:04:04 UTC
fixed

http://hg.netbeans.org/jet-main/rev/f22f00c50de2
Comment 4 Quality Engineering 2011-09-10 14:29:09 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/f22f00c50de2
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #196864 - Wrong code generated from Swing GUI Form editor if the JTable's model customizer contains Infinity, -Infinity or NaN in some Double column.