Summary: | Move top level doesn't optimize the imports[refactoring] | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Erich Gamma <erich_gamma> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | akiezun |
Version: | 2.0 | ||
Target Milestone: | 2.1 M4 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Erich Gamma
2002-10-17 07:53:50 EDT
the culprit is SearchEngine::searchDeclarationsOfReferencedTypes small test case (where 5 types are found instead of just 1): package d; import java.awt.Canvas; import java.awt.Color; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.SystemColor; class B { static class Inner { Color color; } Canvas canvas; Color color; Graphics graphics; Rectangle rectangle; SystemColor systemColor; } What were you searching for exactly ? sorry for the cryptic description SearchEngine.searchDeclarationsOfReferencedTypes with the class Inner as a parameter DeclarationOfReferenceTypesPattern was not filtering out the import references that were not enclosed in the java element. Fixed and added regression test JavaSearchTests.testDeclarationOfReferencedTypes6(). Verified. |