Bug 211805 - One project cannot see class in default package from another project.
Summary: One project cannot see class in default package from another project.
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-03 14:58 EST by Henning Hoffmann CLA
Modified: 2007-12-11 09:04 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Hoffmann CLA 2007-12-03 14:58:08 EST
Build ID: M20060921-0945

Steps To Reproduce:
1. create Java Project "aaa"
2. create Java Class "One" in the default package with static method "one"
3. create Java Class "Two" in package "aaa" with a static method "two"
4. create Plug-in Project "bbb"
5. change the Project properties of "bbb" to add "aaa" to the Java Build Path
6. in a class in "bbb" try to reference "One" and "Two". 

Problem:
Only the reference to "Two" will work.

More information:
I was talking to TJ Houghton on the Eclipse team, and he seemed to think that this might be a problem.
Comment 1 Olivier Thomann CLA 2007-12-03 15:01:46 EST
Depending of your compiler settings, it is forbidden to import from the default package.
In step 6, is your class in the default package ?
Comment 2 Henning Hoffmann CLA 2007-12-03 15:04:46 EST
The class I'm importing INTO in Step 6 is not in the default package.
Comment 3 Philipe Mulet CLA 2007-12-03 16:44:19 EST
References to types in default package are not allowed from outside the default package, since Java 1.4.

If you still want to reach One, then toggle compiler settings to 1.3 compliance.

Closing as Invalid. The current behavior matches expectation.
Comment 4 Frederic Fusier CLA 2007-12-11 09:04:00 EST
Verified for 3.4M4