Bug 82728

Summary: [1.5] fully qualified static method import not accepted
Product: [Eclipse Project] JDT Reporter: Sebastian Davids <sdavids>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Sebastian Davids CLA 2005-01-12 20:33:27 EST
Test case:

import static java.lang.Math.abs;

public class Test {

    public static void main(String[] args) {
        abs(3.0);
    }
}

@@@@

This is accepted:

import static java.lang.Math.*;

public class Test {

    public static void main(String[] args) {
        abs(3.0);
    }
}

@@@@

javac will compile both.

@@@@

Version: 3.1.0
Build id: I20050111-1300
Comment 1 Kent Johnson CLA 2005-01-13 10:16:32 EST

*** This bug has been marked as a duplicate of 81706 ***