Bug 291391 - update the Bundle-Version of the JDT Core Batch Compiler (ecj) from 3.3.0 to 3.6.*
Summary: update the Bundle-Version of the JDT Core Batch Compiler (ecj) from 3.3.0 to ...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-05 13:39 EDT by Hugues Malphettes CLA
Modified: 2009-10-27 03:27 EDT (History)
3 users (show)

See Also:
daniel_megert: pmc_approved-


Attachments
Proposed fix for 3.5 maintenance (7.13 KB, patch)
2009-10-09 11:04 EDT, Olivier Thomann CLA
no flags Details | Diff
Proposed fix for 3.5 maintenance (7.40 KB, patch)
2009-10-09 11:10 EDT, Olivier Thomann CLA
no flags Details | Diff
Proposed fix for 3.5 maintenance (6.39 KB, patch)
2009-10-09 11:36 EDT, Olivier Thomann CLA
no flags Details | Diff
Proposed fix for 3.5 maintenance (6.64 KB, patch)
2009-10-09 14:29 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hugues Malphettes CLA 2009-10-05 13:39:00 EDT
Hi there,

I noticed that the manifest of the JDT Core Batch Compiler (ecj-3.6.M2.jar) is not up-to-date:
http://download.eclipse.org/eclipse/downloads/drops/S-3.6M2-200909170100/index.php#JDTCORE
The Manifest states that the Bundle-Version is 3.3.0
This also affect 3.5.*

Also it would be nice to update the entries of the MANIFEST.MF of ecj-sources.zip so that its Bundle-Version is also up-to-date and so that it is recognized by the PDE as the sources bundle of the ecj.
I think this extra entry would do that:
Eclipse-SourceBundle: org.eclipse.jdt.core.compiler.batch;version="3.6.M2";roots:="."

Thanks!
Comment 1 Olivier Thomann CLA 2009-10-05 13:49:48 EDT
This is the manifest used for the ecj jar file available on the Eclipse download site.
Comment 2 Olivier Thomann CLA 2009-10-07 15:01:37 EDT
Released for 3.6M3.
I'll check next N-build to make sure the jar and zip files look ok.
Comment 3 Olivier Thomann CLA 2009-10-09 11:02:18 EDT
N-build ecj.....jar and source bundles look good.
We might want to apply the same patch for 3.5.2 (with version updated to 3.5.2 instead of 3.6.0).
Comment 4 Olivier Thomann CLA 2009-10-09 11:04:34 EDT
Created attachment 149245 [details]
Proposed fix for 3.5 maintenance
Comment 5 Olivier Thomann CLA 2009-10-09 11:10:49 EDT
Created attachment 149247 [details]
Proposed fix for 3.5 maintenance

Small changes.
Comment 6 Olivier Thomann CLA 2009-10-09 11:19:14 EDT
In fact to define a source bundle I should really convert the zip file to be a jar file.
I'll talk with Kim about this.
With the current patch, the source zip can be renamed to a jar to be a source bundle.
Comment 7 Hugues Malphettes CLA 2009-10-09 11:22:50 EDT
Thanks Olivier and thanks for fixing the sources bundle too:
This morning I wondered why equinox was not picking up the batch compiler in my
setup... it was picking up the sources instead.

Also I suspect that it might mislead OSGi to keep the runtime entries in the sources bundle: equinox will think that the sources jar is exporting those packages.
Comment 8 Olivier Thomann CLA 2009-10-09 11:34:18 EDT
You are right. I should clean up some entries in the MANIFEST.MF file from the source zip. Released in HEAD.
Kim only need to update some links in the download page if we move to a jar file for the source bundle.
So this would be easy to do. Right now a manual rename is required.

I'll update the patch for 3.5 maintenance accordingly.
Comment 9 Olivier Thomann CLA 2009-10-09 11:36:11 EDT
Created attachment 149248 [details]
Proposed fix for 3.5 maintenance

Updated patch to remove entries in the source MANIFEST.MF
Comment 10 Olivier Thomann CLA 2009-10-09 14:29:30 EDT
Created attachment 149267 [details]
Proposed fix for 3.5 maintenance

Adding package export of internal packages coming from compiler.apt and compiler.tool fragments.
Comment 11 Dani Megert CLA 2009-10-13 11:27:09 EDT
Not critical enough to backport.
Comment 12 Ayushman Jain CLA 2009-10-27 02:05:57 EDT
Verified for 3.6M3 using build I20091025-2000.