Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 384686 - small but nasty build/install issues with JDK7
Summary: small but nasty build/install issues with JDK7
Status: RESOLVED DUPLICATE of bug 297769
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 02:43 EDT by Krzysztof Daniel CLA
Modified: 2013-03-11 12:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Daniel CLA 2012-07-10 02:43:37 EDT
Fedora uses the latest JDK and dropins to deploy mylyn.

Mylyn uses some APIs by requiring entire bundles, packaging them, and eventually duplicating some of the JDK7 packages:
javax.activation - JDK
javax.annotation - JDK
javax.jws - JDK
javax.management - JDK
javax.management.remote - JDK
javax.transaction - JDK
javax.xml - JDK
javax.xml.bind - JDK
javax.xml.soap - JDK
javax.xml.stream - JDK
javax.xml.ws - JDK 

The result is that if you try to install mylyn using dropins, OSGi will load those javax.* bundles, change the wirings and cause many LinkageErrors (because sources of javax.xml.* classes have been changed, and already loaded classes are considered to be different from those newly loaded).

Mylyn should import those packages that are present in the JDK7 and let P2 install additional bundles if older versions of JDK are in use.
Comment 1 Steffen Pingel CLA 2012-07-10 12:08:04 EDT
We had to explicitly require the bundles in the features to ensure that the packages are available since the p2 resolver would otherwise ignore them. AFAIK, all Orbit bundles that ship JDK packages require system.bundle but I don't know how that works with dropins. Could you simply exclude these bundles in the Redhat packaging?
Comment 2 Krzysztof Daniel CLA 2013-03-11 12:10:37 EDT
Ok, it looks like this has nothing to do with included packages, but it is a bug in the Equinox. Closing for now as a duplicate.

*** This bug has been marked as a duplicate of bug 297769 ***