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 170339 - [68cat] Inappropriate "create new class" hint on parameterized constructor invocation
Summary: [68cat] Inappropriate "create new class" hint on parameterized constructor in...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-13 18:00 UTC by matthies
Modified: 2016-07-07 07:17 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 matthies 2009-08-13 18:00:37 UTC
Example:

    new ThreadLocal<String>("foo");

There is the hint 'Create new class "ThreadLocal" in package {current package}'. The hint disappears when "<String>" is 
removed.
Comment 1 Max Sauer 2009-08-14 09:13:45 UTC
In fact, the hint should be probably disabled in the first case also, since there is no ThreadLocal(String) ctor in java.lang.ThreadLocal and hiding java.lang 
classes does not look like good code style.
Comment 2 matthies 2009-08-18 14:42:24 UTC
Yes, that's what I meant, there should be no hint in the case of explicit type arguments here, for the same reason 
there is no hint in the case of no explicit type arguments.
Comment 3 matthies 2009-08-20 13:24:44 UTC
Yes, that's what I meant, there should be no hint in the case of explicit type arguments here, for the same reason 
there is no hint in the case of no explicit type arguments.
Comment 4 Martin Balin 2016-07-07 07:17:00 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss