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 120255

Summary: [60cat] Wrong quick fix if 'new' keyword is missing
Product: java Reporter: peathal <peathal>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description peathal 2007-10-27 13:06:44 UTC
If you write:
List l = ArrayList<Object>();
you will get a hint to import ArrayList although it is already imported.
This results in several ArrayList import's.

The expected result is: import ArrayList (if not already imported) and add 'new' keyword.
Comment 1 franci 2007-11-27 22:26:24 UTC
another example, if you forget ".class" comparing classes

if (ex.getClass() == ZipException)
  return;
Comment 2 David Strupl 2009-03-31 15:58:00 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 3 Quality Engineering 2009-11-02 11:02:01 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX