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.
Summary: | "Go to Type" result is different for the same input | ||
---|---|---|---|
Product: | java | Reporter: | stwr |
Component: | Navigation | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
First 'java.io.' result
Second 'java.io.' result |
Description
stwr
2015-08-25 07:45:35 UTC
Created attachment 155601 [details]
First 'java.io.' result
Created attachment 155602 [details]
Second 'java.io.' result
I can reproduce similar behavior. When I type java.nio. for the first time the list contains lost of entries which does not match the pattern (as java_awt_AWTKeyStroke_PersistenceDelegate in java.beans.MetaData). After adding * (e.g. java.nio.*) all classes from java.nio package are correctly displayed. After deleting the * the list still shows the classes from nio package. I guess issue 254691 may be related yes, the lookup in step 3) and step 4) should be the same. The expected behavior: Type 'java.io' and lookup the result -> classes starting with io in package containing "*.java*.*" should be found. Add '.' and lookup the result Should return all classes in package structure "*.java*.io*.*" The problem is in the different implementation of the splitting function in the java and jumpto. In the jumpto the ending dot is ignored in java is taken. Fixed jet-main 2bb8f6fc3a9e. Thanks for the report. The problem was caused that I wanted to prevent transition from result to <Not Found> in the go to symbol. In the Go To Symbol it's currently impossible (expensive) to find all symbols in given prefix. So I wanted to consume the '.' and still keep the prevous search, for example 'Util' and 'Util.' both searched for 'Util' adding 'Util.t' it searched for 't' in 'Util'. But the code is shared among go to type nad go to symbol. In go to type it's logical to lookup package content for 'java.io.'. So now I rather allowed the transition from result to <Not Found> in Go To Symbol. And I will think how to implement the all symbols for given prefix in some performance effective way. Integrated into 'main-silver', will be available in build *201508290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2bb8f6fc3a9e User: Tomas Zezula <tzezula@netbeans.org> Log: #254682:"Go to Type" result is different for the same input |