Bug 329853 - Compiler does not handle PDE projects that specify classes/ folder as source
Summary: Compiler does not handle PDE projects that specify classes/ folder as source
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-09 16:03 EST by Thomas Watson CLA
Modified: 2010-12-07 04:52 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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