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 - [60cat] Wrong quick fix if 'new' keyword is missing
Summary: [60cat] Wrong quick fix if 'new' keyword is missing
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-27 13:06 UTC by peathal
Modified: 2009-11-02 11:02 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 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