Community
Participate
Working Groups
I20050118-1015 Search does not find references to statically imported methods. It findes all 3 references to fTime, but only one to getTime(): import static p.A.getTime; import static p.A.fTime; public class A { public static int fTime= 1; public static int getTime() { return ++fTime; } } class B { void use() { int t= getTime(); t= fTime; } }
Fixed. Now search engine finds reference of static method in import declarations. However, it still fails to find them in unused import...:-( But I think it could be interesting to have "standard" case working and I'll address this remaining issue in a new bug I'll open... [jdt-core-internal] I'll attach patch file for changes done to implement this functionality. New test cases for static import method added and previous one refactored in JavaSearchTests: testStaticImport*
Created attachment 18378 [details] Patch for the implementation of this functionality
Bug 86901 addresses issue for unused import...
Verified in I20050330-0500