Bug 84260 - import static fails when importing a method
Summary: import static fails when importing a method
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 1.5.0 M3   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 14:23 EST by Nitzan Volman CLA
Modified: 2005-06-14 12:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitzan Volman CLA 2005-02-02 14:23:31 EST
I got the following error:
==============================================
MyClass2.java:3 [error] The import MyClass.myMethod cannot be resolved
import static MyClass.myMethod;
==============================================

other import static statements (Strings/Enums) appear to work.
Comment 1 Chris Smith CLA 2005-02-14 10:38:00 EST
This bug has "Product" set to AspectJ; however, the same occurs without 
AspectJ in 3.1M4.
Comment 2 Matt McHenry CLA 2005-02-14 12:12:06 EST
This is a duplicate of bug 81706.
Comment 3 Adrian Colyer CLA 2005-03-23 09:31:03 EST
this should be fixed when we pick up the latest JDT compiler in aj5m3...
Comment 4 Andrew Clement CLA 2005-06-08 06:48:43 EDT
Fixed in CVS, I have added testcases under this bug number for static imports.
Comment 5 Andrew Clement CLA 2005-06-14 12:05:34 EDT
Fix available, see aspectj download page: aspectj-DEVELOPMENT-20050614164300.jar