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.
Summary: | Wrong hint for diamond <> operator and anonymous classes | ||
---|---|---|---|
Product: | java | Reporter: | wgabrie |
Component: | Hints | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | choces |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 200592 | ||
Bug Blocks: |
Description
wgabrie
2012-09-13 21:07:18 UTC
Just to add. I just tested the netbeans build feature and the empty diamond operator does compile, so it isn't a compiler bug, but I want this diamond inference warning to stop bothering me when I'm using valid syntax. Integrated into 'main-golden', will be available in build *201209230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f7995c6e165a User: Jan Lahoda <jlahoda@netbeans.org> Log: #218321: use java.hints' ErrorDescriptionFactory to get the standard subfixes. Do I understand correctly that this is not about generating incorrect code (the code is still valid after the change, right?)? Bug #200592 was about removing the type parameters in case where they had to be kept. The hint can be disabled in Tools/Options/Editor/Hints/Language=Java/JDK 1.5 and later/Can Use Diamond. It was missing the standard subfixes, which I added using the changeset above, so in the next release "Configure" and "Disable" options should be available directly from the editor. |