[jaxb] 01/03: Fixed the build failure with Java 8
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue May 3 20:06:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository jaxb.
commit 1c5428a8129583a3f208d7710671d478aed70766
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue May 3 21:57:16 2016 +0200
Fixed the build failure with Java 8
---
debian/changelog | 7 +++++++
debian/patches/java8-compatibility.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 0be4a7f..8667fad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+jaxb (2.2.5-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Fixed the build failure with Java 8
+
+ -- Emmanuel Bourg <ebourg at apache.org> Tue, 03 May 2016 21:56:59 +0200
+
jaxb (2.2.5-1) unstable; urgency=medium
* Initial release. (Closes: #734727)
diff --git a/debian/patches/java8-compatibility.patch b/debian/patches/java8-compatibility.patch
new file mode 100644
index 0000000..9f597c2
--- /dev/null
+++ b/debian/patches/java8-compatibility.patch
@@ -0,0 +1,23 @@
+Description: Fixes the compatibility with Java 8
+Origin: backport, https://github.com/gf-metro/jaxb/blob/8c3b56a/jaxb-ri/jxc/src/main/java/com/sun/tools/jxc/model/nav/ApNavigator.java#L382
+--- a/xjc/src/com/sun/tools/jxc/model/nav/ApNavigator.java
++++ b/xjc/src/com/sun/tools/jxc/model/nav/ApNavigator.java
+@@ -387,6 +387,18 @@
+ public TypeKind getKind() {
+ throw new IllegalStateException();
+ }
++
++ public List<? extends javax.lang.model.element.AnnotationMirror> getAnnotationMirrors() {
++ throw new IllegalStateException();
++ }
++
++ public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A> annotationType) {
++ throw new IllegalStateException();
++ }
++
++ public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
++ throw new IllegalStateException();
++ }
+ };
+
+ public Location getClassLocation(TypeElement typeElement) {
diff --git a/debian/patches/series b/debian/patches/series
index 1dbaa5c..098b739 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ add-dependencies.patch
dont-use-prebuilt-javadocs.patch
dont-build-examples.patch
fix-javadoc-build.diff
+java8-compatibility.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jaxb.git
More information about the pkg-java-commits
mailing list