Summary: | Search: declaration in hierarchy - wrong matches | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dirk Baeumer <dirk_baeumer> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P1 | ||
Version: | 2.0 | ||
Target Milestone: | 2.0 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Dirk Baeumer
2002-02-13 08:10:37 EST
Dani pls investigate whether this is JCORE or UI. All of the listed "wrong" matches are anonymous inner classes but not all of them are wrong: TornDown is an inner class in ExtensionTest (extending TestSetup) and in TestTest (extending TestCase). ==> The matches in the anonymous inner class of ExtensionTest.TornDown are therefore wrong but the two other results are correct. I guess ExtensionTest.TornDown somehow made it into the hierarchy scope. Moving JCore The hierarchy scope is just a filter on the potential matches. In this case, you looked for the declaration of all 'setup' methods (pattern is '*.setup'). Only the one that were not part of the hierarchy were filtered out. Since it is not possible to have java elements corresponding to local type declarations, the hierarchy scope considered that the match (which is inside ExtensionTest) is part of the hierarchy since ExtensionTest is a subclass of TestCase. To have the behavior you expect, the UI should use the java element for TestCase.setup as the search pattern. |