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

Bug 329853

Summary: Compiler does not handle PDE projects that specify classes/ folder as source
Product: [Eclipse Project] JDT Reporter: Thomas Watson <tjwatson>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, jarthana, Olivier_Thomann
Version: 3.7   
Target Milestone: 3.7 M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Thomas Watson CLA 2010-11-09 16:03:58 EST
See bug329277.

In org.eclipse.core.runtime.compatibility.registry we had a case where a classes/ folder (which only contained .class files, not .java files) was included as a source folder:

source.runtime_registry_compatibility.jar = src/,\
                                            classes/

This started to cause compile errors when the build moved to a newer version of JDT/Core (I think the upgrade to M3).  This bug is being opened to track down what changed in the behavior of JDT/Core to cause this scenario to start failing.  We have implemented a workaround in bug329277 to successfully build org.eclipse.core.runtime.compatibility.registry but we should still get to the bottom of why this started to fail.
Comment 1 Olivier Thomann CLA 2010-11-16 08:58:26 EST
On the JDT/Core side, this is likely coming from the fact that I used the option -sourcepath to pass in the source path option from the ant task. Before I used to pass them as a classpath entry.
So being a source path means that the classes are only search from a source file not a class file.

Closing as FIXED.
Comment 2 Jay Arthanareeswaran CLA 2010-12-07 04:52:13 EST
Verified for 3.7M4 using build I20101206-1800