Bug 82728 - [1.5] fully qualified static method import not accepted
Summary: [1.5] fully qualified static method import not accepted
Status: RESOLVED DUPLICATE of bug 81706
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-12 20:33 EST by Sebastian Davids CLA
Modified: 2005-01-13 10:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***