Bug 9263 - Code assist can't see other project's class folders
Summary: Code assist can't see other project's class folders
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-07 12:50 EST by Jed Anderson CLA
Modified: 2002-04-17 06:06 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 Jed Anderson CLA 2002-02-07 12:50:03 EST
Build 20020205

Code assist doesn't look in class folders in referenced projects to find
completions.

To duplicate:
1. Create a project named "Temp"
2. Edit the Java build path for Temp:
     set "Use source folders contained in project"
     new source folder named "src"
     set output folder to "Temp/bin"
3. Create a package in Temp/src named "foo"
4. Create a class in foo named "FooBar"
5. Add the following method to FooBar
	public String getString() {
		return "hello world";
	}
6. Create a Java project called "Binaries"
7. Edit the Java build path for Binaries:
     set "Use source folders contained in project"
     set the output directory to "Binaries/bin"
8. Create a new folder in Binaries named "classes"
9. Edit the Java build path for Binaries:
     classes -> class folder
     export the classes folder in the export tab
10. From the resources perspective, copy the Temp/bin/foo folder to the
Binaries/classes folder.  Binaries/classes should now contain a folder named foo
and in the foo folder there should be a file named FooBar.class
11. Create a new Java project named "MyProject"
12. Edit the Java build path for MyProject:
     Add a dependency on the Binaries project
13. Create a new class in MyProject, "Foo"
14. Inside the class declaration of Foo type "FooBar" then hit Ctrl-Space.
15. Code complete rings the bell.  It should bring up a popup showing FooBar.
Comment 1 Erich Gamma CLA 2002-04-14 10:09:47 EDT
moving to JDT Core for investigation
Comment 2 Jerome Lanneluc CLA 2002-04-17 06:06:54 EDT
Verified this is fixed in 20020416.
Closing.