Bug 77630 - [compiler] no error when importing package inside static import
Summary: [compiler] no error when importing package inside static import
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 09:46 EST by David Audel CLA
Modified: 2004-12-14 15:03 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 David Audel CLA 2004-11-03 09:46:11 EST
build I20041102

1) create X.java
import static java.lang.*;
public class X {}

2) compile X.java with javac
There is 1 error

X.java:1: cannot find symbol
symbol  : class lang
location: package java
import static java.lang.*;

2) compile with eclipse
There is 0 error and 1 warning
  "The import java.lang is never used"

It must be an error and not this warning
Comment 1 Kent Johnson CLA 2004-11-17 15:10:59 EST
Added StaticImport test 16
Comment 2 Olivier Thomann CLA 2004-12-14 15:03:16 EST
Verified in 200412140800