Bug 81706

Summary: [1.5] Static import of static method produces compile error
Product: [Eclipse Project] JDT Reporter: Glenn Burgess <glenn.burgess>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: crouton.eclipse.org, iasandcb, leberre, sdavids
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Adds test for static import of java.lang.Math.abs method to org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest none

Description Glenn Burgess CLA 2004-12-20 22:46:20 EST
eg.
static import java.lang.Math.max;

Compiler reports:
The import java.lang.Math.max cannot be resolved

This is however a legal use of static import.
Comment 1 Glenn Burgess CLA 2004-12-20 22:56:06 EST
Created attachment 16782 [details]
Adds test for static import of java.lang.Math.abs method to org.eclipse.jdt.core.tests.compiler.regression.StaticImportTest
Comment 2 Kent Johnson CLA 2004-12-28 09:50:32 EST
As a work around, please use:

static import java.lang.Math.*;
Comment 3 Kent Johnson CLA 2004-12-29 09:33:41 EST
*** Bug 81593 has been marked as a duplicate of this bug. ***
Comment 4 Kent Johnson CLA 2004-12-29 09:34:35 EST
*** Bug 81470 has been marked as a duplicate of this bug. ***
Comment 5 Kent Johnson CLA 2004-12-30 09:39:44 EST
*** Bug 81593 has been marked as a duplicate of this bug. ***
Comment 6 Kent Johnson CLA 2004-12-30 09:41:10 EST
*** Bug 81470 has been marked as a duplicate of this bug. ***
Comment 7 Kent Johnson CLA 2005-01-12 15:02:39 EST
enabled rest of StaticImport test012
Comment 8 Kent Johnson CLA 2005-01-13 10:16:32 EST
*** Bug 82728 has been marked as a duplicate of this bug. ***
Comment 9 Olivier Thomann CLA 2005-01-20 10:12:15 EST
*** Bug 83275 has been marked as a duplicate of this bug. ***
Comment 10 David Audel CLA 2005-02-16 06:16:31 EST
Verified in I20050215-2300