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 262093 - Use diamond operator is displayed for Java 6 project
Summary: Use diamond operator is displayed for Java 6 project
Status: RESOLVED DUPLICATE of bug 258130
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.2
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-17 14:16 UTC by misterm
Modified: 2016-05-26 11:30 UTC (History)
1 user (show)

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 misterm 2016-05-17 14:16:48 UTC
Product Version = NetBeans IDE Dev (Build 20160509-a7eb2f145d54)
Operating System = Windows 8.1 version 6.3 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b17

Reproducibility: Happens every time

STEPS:
  * Create a Java Maven project and configure it to use Java 6
  * Use any construction that could be replaced by the diamond operator in Java 7, such as:
private Set<String> s = new HashSet<String>();

ACTUAL:
  The hint is shown and accepting it will lead to code that does not compile

EXPECTED:
  The hint should not be displaye
Comment 1 Svata Dedic 2016-05-26 11:30:12 UTC

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