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 271214

Summary: Gui Builder is generating code that uses the diamond operator when project source level is JDK 6. This does not compile.
Product: guibuilder Reporter: cpholt <cpholt>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description cpholt 2017-08-01 13:25:21 UTC
Source/Binary format is set to JDK6 in the project properties.  I added a JList gui component to a Form Panel, and it generated this code:

jList1 = new javax.swing.JList<>();

That does not compile with java 1.6.