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 250586 - Builder should respect Java version
Summary: Builder should respect Java version
Status: RESOLVED DUPLICATE of bug 227943
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 5 votes (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 17:30 UTC by cezariusz
Modified: 2015-09-11 13:14 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 cezariusz 2015-02-20 17:30:27 UTC
Code generated by the GUI Builder should compile without warnings, so it should take the project Java version into consideration.
For example:

        stringList = new javax.swing.JList<String>();

Leads to an IDE compiler warning "redundant type arguments in new expression (use diamond operator instead)".
Comment 1 Tomas Pavek 2015-09-11 13:14:12 UTC
new javax.swing.JList<String>() should be fixed as part of bug 227943.

*** This bug has been marked as a duplicate of bug 227943 ***