Bug 18680

Summary: Classpath Loop
Product: [Eclipse Project] JDT Reporter: Gunnar Wagenknecht <gunnar>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 F3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Gunnar Wagenknecht CLA 2002-06-03 06:34:32 EDT
I noticed a serious problem in Eclipse F2 but I didn't figure out yet, how to 
reproduce this. I will try next days with a new workspace but couldn't because 
of anoter bug 18677.

Environment config:

- imported plugin project A (from "com.ibm.etools.draw2")
required plugins: org.eclipse.swt + org.eclipse.ui
reexports: ECLIPSE_HOME/plugins/org.eclipse.swt/win32_2.0.0/ws/win32/swt.jar

- created plugin project B
required plugins: org.apache.xerces

-created plugin project C
requires plugins: none

- created plugin project D
required plugins: org.eclipse.core.runtime, org.eclipse.core.resources, 
org.eclipse.ui, org.eclipse.jdt.core, org.eclipse.jdt.ui, 
org.eclipse.launching, org.apache.xerces, B, C

- created plugin project E
required plugins: org.eclipse.core.resources, org.eclipse.ui, 
com.ibm.etools.gef, com.ibm.etools.draw2d, B, C, D

- created JAVA project F
project dependencies: A, D, E
library dependencies: ECLIPSE_HOME/plugins/org.eclipse.ui_2.0.0/workbench.jar

Now while editing classes of JAVA project F, various problems occours that IMHO 
should have the same cause. 

These problems are:

1.
Code Assist could not find _ANY_ classes except the current one I'm editing. 
Even classes of the same project could not be found. (Navigate->Open Type shows 
up all available classes). 
Code Completion for members and vars of already imported classes work but not 
for class names. 
Code Completion also doesn't work for constructors. If I type a class and try 
to invoke Code Assist to find available constructors, Message "No Completions 
found" appears in status bar.

2.
If I remove library workbench.jar from project F library dependencies, class 
names are found, but Code Assist shows incorrect member information for one 
class of project E. Some members are missing. Code Assists also doesn't work on 
constructors for some classes of project D.

3. If I remove project E from project dependencies, everything works even. Even 
if I readd workbench.jar. Code Assist finds all classes, members and so on.

It's very difficult to reproduce this problem on other installations. If I find 
a way, I will post it ASAP. Maybe someone can have a look over affected code, 
to confirm there is no loop or anything else in building classpaths for Code 
Assist or compiler.
Comment 1 David Audel CLA 2002-06-04 12:26:20 EDT
I can not reproduce this bug.

Gunnar - Could you give me a more specific test case ?
Comment 2 Gunnar Wagenknecht CLA 2002-06-04 15:01:38 EDT
I currently working on a testcase but I didn't manage to build one yet. It 
seems a very specific problem with our development projects but I can't 
publish them.

Please don't close this bug, I will provide a testcase ASAP I could figure out 
how to reproduce it.
Comment 3 Philipe Mulet CLA 2002-06-06 06:31:21 EDT
Gunnar - a build will happen today, with a fix for a reproduceable bug with 
similar symptoms (bug 19303). Let us know if this addresses your problem as 
well.
Comment 4 Gunnar Wagenknecht CLA 2002-06-07 06:10:53 EDT
I could no reproduce the error with the last build. Seems to be fixed now.
Thanks.
Comment 5 Philipe Mulet CLA 2002-06-07 12:31:46 EDT
Thanks, closing as duplicate.

*** This bug has been marked as a duplicate of 19303 ***