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 201723 - Wrong suggestion for Logger.getL<ctrl-space>
Summary: Wrong suggestion for Logger.getL<ctrl-space>
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: Other Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 06:40 UTC by Jaroslav Tulach
Modified: 2011-09-08 14:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (28.47 KB, image/png)
2011-09-07 06:40 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2011-09-07 06:40:17 UTC
Created attachment 110461 [details]
Screen shot

I am using JDK1.7.0-b147 and when I tried to use Logger I got very tempting suggestion to use

Logger.getLogger(MyClass.class)

but after deeper inspection I found out that this is not the java.util.logging.Logger I want to use, but some internal class from JDK.

Code completion should not offer com.sun.istack.internal.logging.Logger on a first position, if it should offer it at all.
Comment 1 Dusan Balek 2011-09-07 11:41:47 UTC
Ordering fixed in jet-main. BTW: internal JDK classes could be excluded from code completion via 'Tools -> Options -> Editor -> Code Completion -> Java'

http://hg.netbeans.org/jet-main/rev/900a00e03da1
Comment 2 Quality Engineering 2011-09-08 14:29:56 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/900a00e03da1
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #201723: Wrong suggestion for Logger.getL<ctrl-space> - fixed.