Community
Participate
Working Groups
I20051213-0010 Open Type does not work for fully qualified nested types, e.g java.util.Arrays.ArrayList: - enter "java.util." => "ArrayList - java.util.Arrays" appears - append "A" => "Arrays - java.util" is shown, but Arrays.ArrayList is not available any more - press backspace to make pattern "java.util." again => "ArrayList - java.util.Arrays" is not shown again; removing and re-adding the dot makes the nested class appear again. The nested class should be consistently shown or not shown. - set pattern to "java.util.Arrays." => no type shown; expected: nested types of fully qualified type should be listed
The problem is that java.util. list ALL types inside the package java.util whereas java.util.A list all top level types starting with A. This is IMO OK since showing second level types might be confusing. The pattern should then be java.util.*.A.
The problem is that from the pattern I don't know if the last segment is a type or a package. I can do some guessing, however this will not work for types with lower case names then. I have change the code that the first segement is always interpreted as a package and the last one as the type you are searching for. This means: java.util.A: list all types starting with A inside the package java.util even if they aren't top level types. java.util.Arrays.: will not list any types. The problem is that the search engine doesn't support this. I can hack the code so that it works on a cached result but this would introduce another inconsistency. I have opened bug 122519 to track this issue inside of JDT/Core. Postponing until 122519 is fixed.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.