Project: JDT
Bug 338212 [JUnit] JUnit classes cannot be resolved when using built-in JUnit library (space in install directory)
Reported: 2011-02-25 07:51:05 | Status: verified fixed

Build Identifier: I20110127-2034 I installed eclipse-java-helios-SR1-win32-x86_64 and I can use the built-in JUnit 3 or 4 library in a Java project, the JUnit classes can be resolved. If I use eclipse-SDK-3.7M5-win32-x86_64, eclipse-SDK-I20110208-0800-win32-x86_64 or eclipse-SDK-N20110211-2000-win32-x86_64, then the classes are not resolved. When looking at the "Current Location", it's missing the jar in the path. It's showing Current location: org.junit_4.8.1.v4_8_1_v20100427-1100 - C:\Program Files\Eclipse\plugins Source Location: org.junit.source_4.8.1.v4_8_1_v20100427-1100.jar - C:\Program Files\Eclipse\plugins Reproducible: Always Steps to Reproduce: 1. Create a Java Project 2. Create a new JUnit Test Case, either v3 or v4 3. Eclipse asks to add JUnit library, say yes Result: The JUnit classes cannot be resolved

Files changed in fix:
org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java