Community
Participate
Working Groups
Consider the following classes: public class AAA { public void m() { class BBB { } } } BBB is a local class, which cannot be found using the Open Type search dialog (Ctrl-Shift-T). This behaviour is inconsistent with the display on the Outline or the package explorer views, which clearly display BBB as a class which I can navigate to
Confirmed using 4.7 M6.
For Open Type dialog, we use the API SearchEngine.searchAllTypeNames(...) which searches for all top-level types and member types. It does not search for local types and there is no other API in the SearchEngine which includes local types in the result.
Local types are not used very frequently. Also, to fix this issue, we'll first need a new API from jdt.core that searches for local types.
Ran into this again. Would be really helpful for me...
If this is done, it must come with a filter that is enabled by default.
I agree. Note, I would expect local classes to become more popular, once records are available: https://cr.openjdk.java.net/~briangoetz/amber/datum.html
It can be done with the filter in UI. Requested for the API from JDT Core in bug 546075.