Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexei.trebounskikh2019-01-04 02:32:54 +0000
committeralexei.trebounskikh2019-01-15 08:48:40 +0000
commitc2d0ce71e537e25bc28835d6d349e04bbbd075fc (patch)
treed25432f34c389b811b29170d51d9b1a46f513c60 /org.eclipse.mylyn.commons.notifications.feed
parentc9db74801f8d67ed61a990c1af15fccc86db6337 (diff)
downloadorg.eclipse.mylyn.commons-c2d0ce71e537e25bc28835d6d349e04bbbd075fc.tar.gz
org.eclipse.mylyn.commons-c2d0ce71e537e25bc28835d6d349e04bbbd075fc.tar.xz
org.eclipse.mylyn.commons-c2d0ce71e537e25bc28835d6d349e04bbbd075fc.zip
542870: Mylyn is not compatible with Java 11
* added Sun's implementation of JAXB Change-Id: I586b450ab639cf175f80734cf4ab3986594e9528 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=542870 Signed-off-by: alexei.trebounskikh <alexei.trebounskikh@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.commons.notifications.feed')
-rw-r--r--org.eclipse.mylyn.commons.notifications.feed/META-INF/MANIFEST.MF5
-rw-r--r--org.eclipse.mylyn.commons.notifications.feed/src/org/eclipse/mylyn/internal/commons/notifications/feed/FeedReader.java2
2 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.commons.notifications.feed/META-INF/MANIFEST.MF b/org.eclipse.mylyn.commons.notifications.feed/META-INF/MANIFEST.MF
index 036d9f5a..05938160 100644
--- a/org.eclipse.mylyn.commons.notifications.feed/META-INF/MANIFEST.MF
+++ b/org.eclipse.mylyn.commons.notifications.feed/META-INF/MANIFEST.MF
@@ -9,9 +9,10 @@ Export-Package: org.eclipse.mylyn.commons.notifications.feed;x-internal:=true,
org.eclipse.mylyn.internal.commons.notifications.feed;x-internal:=true
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.mylyn.commons.core,
- org.eclipse.mylyn.commons.notifications.core
+ org.eclipse.mylyn.commons.notifications.core,
+ javax.xml.bind;bundle-version="2.2.0",
+ com.sun.xml.bind;bundle-version="2.2.0"
Bundle-ClassPath: .
Bundle-Localization: plugin
Bundle-ActivationPolicy: lazy
-Import-Package: javax.xml.bind;version="[0.0.0,2.3.0)"
diff --git a/org.eclipse.mylyn.commons.notifications.feed/src/org/eclipse/mylyn/internal/commons/notifications/feed/FeedReader.java b/org.eclipse.mylyn.commons.notifications.feed/src/org/eclipse/mylyn/internal/commons/notifications/feed/FeedReader.java
index 8a49620d..96cfcd7e 100644
--- a/org.eclipse.mylyn.commons.notifications.feed/src/org/eclipse/mylyn/internal/commons/notifications/feed/FeedReader.java
+++ b/org.eclipse.mylyn.commons.notifications.feed/src/org/eclipse/mylyn/internal/commons/notifications/feed/FeedReader.java
@@ -49,7 +49,7 @@ public class FeedReader {
public IStatus parse(InputStream in, IProgressMonitor monitor) {
try {
- JAXBContext jc = JAXBContext.newInstance(RSS.class);
+ JAXBContext jc = com.sun.xml.bind.v2.ContextFactory.createContext(new Class[] { RSS.class }, null);
Unmarshaller unmarshaller = jc.createUnmarshaller();
JAXBElement<RSS> rss = unmarshaller.unmarshal(new StreamSource(in), RSS.class);

Back to the top