Community
Participate
Working Groups
I200411050810 import static java.lang.Math.PI; public class XY { double pi= PI; double pi2= java.lang.Math.PI; double e=Math.E; } Search for references to Math.PI => The match in the static import includes the qualifier "java.lang.Math.", whereas the match in the class body does not. References to fields should either always include the qualifier or never. I opt for never (no change for pre-1.5 code).
Just an incorrcect implementation. Of course, agree for never.
Fixed. Now match does not include the qualifier in static import. [jdt-core-internal] Changes done FieldLocator.matchLevelAndReportImportRef(...) Test case added in JavaSearchTests
Verified in 200412140800