Bug 9263

Summary: Code assist can't see other project's class folders
Product: [Eclipse Project] JDT Reporter: Jed Anderson <jed.anderson>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.