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.
Example: new ThreadLocal<String>("foo"); There is the hint 'Create new class "ThreadLocal" in package {current package}'. The hint disappears when "<String>" is removed.
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.
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.
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