Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364630

Summary: [JUnit] Having a plus sign in Eclipse's path causes JUnit libraries to be "not found"
Product: [Eclipse Project] JDT Reporter: Hosam Aly <hosamaly6>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: amj87.iitr, deepakazad
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Hosam Aly CLA 2011-11-23 12:24:55 EST
Build Identifier: M20110909-1335

If a plus sign ('+') exists in Eclipse's path (e.g.
"C:\Apps\Eclipse\3.7+SDK\eclipse.exe"), projects having JUnit in their classpath get compilation errors, because JUnit's (container) libraries are not found, even though they exist in the ".classpath" file. Trying to add the library again by opening the project's build path preferences page and choosing to add library, then JUnit, shows JUnit libraries as "not found".

The problem is that this issue is subtle and it's very hard to spot what the error is, especially that no errors are thrown.

This is related to bug #364628.

Reproducible: Always

Steps to Reproduce:
1. Rename the Eclipse folder to a name containing a plus sign ('+'), e.g.
"C:\Apps\Eclipse+SDK".
2. Open a workspace containing a project that has JUnit added to it, using the following entry in the ".classpath" file:
> <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
3. Try to add the JUnit library to the project's build path.
Comment 1 Ayushman Jain CLA 2011-11-24 00:49:57 EST
Moving to JDT/UI.
Comment 2 Deepak Azad CLA 2011-11-24 10:45:14 EST
Most likely a duplicate of bug 364628.
Comment 3 Hosam Aly CLA 2011-11-24 11:20:17 EST
(In reply to comment #2)
> Most likely a duplicate of bug 364628.

I don't really think it's a duplicate. Fixing the other bug is likely to fix this one, but I think both should be subject to tests.
Comment 4 Eclipse Genie CLA 2019-09-26 20:06:37 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.