Emmanuel Bourg pushed to branch master at Debian Java Maintainers / gmbal-pfl
Commits: 356ec543 by Emmanuel Bourg at 2018-11-30T08:02:19Z Fixed the build failure with Java 11 (Closes: #909257) - - - - - 45bb2cf4 by Emmanuel Bourg at 2018-11-30T08:02:25Z Standards-Version updated to 4.2.1 - - - - - e5de2044 by Emmanuel Bourg at 2018-11-30T08:02:42Z Upload to unstable - - - - - 4 changed files: - debian/changelog - debian/control - + debian/patches/02-java11-compatibility.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +gmbal-pfl (4.0.1-b003-2) unstable; urgency=medium + + * Fixed the build failure with Java 11 (Closes: #909257) + * Standards-Version updated to 4.2.1 + + -- Emmanuel Bourg <[email protected]> Fri, 30 Nov 2018 09:02:33 +0100 + gmbal-pfl (4.0.1-b003-1) unstable; urgency=medium * Initial release (Closes: #904326) ===================================== debian/control ===================================== @@ -11,7 +11,7 @@ Build-Depends: libmaven-bundle-plugin-java, libmaven-source-plugin-java, maven-debian-helper (>= 2.1) -Standards-Version: 4.1.5 +Standards-Version: 4.2.1 Vcs-Git: https://salsa.debian.org/java-team/gmbal-pfl.git Vcs-Browser: https://salsa.debian.org/java-team/gmbal-pfl Homepage: https://javaee.github.io/gmbal-pfl/ ===================================== debian/patches/02-java11-compatibility.patch ===================================== @@ -0,0 +1,19 @@ +Description: Fixes the compatibility with Java 11 +Author: Emmanuel Bourg <[email protected]> +Forwarded: no +--- a/pfl-basic/src/main/java/org/glassfish/pfl/basic/reflection/BridgeBase.java ++++ b/pfl-basic/src/main/java/org/glassfish/pfl/basic/reflection/BridgeBase.java +@@ -264,7 +264,12 @@ + * @param protectionDomain the domain in which the class should be defined + */ + public final Class<?> defineClass(String className, byte[] classBytes, ClassLoader classLoader, ProtectionDomain protectionDomain) { +- return unsafe.defineClass(className, classBytes, 0, classBytes.length, classLoader, null); ++ try { ++ Method defineClass = unsafe.getClass().getMethod("defineClass", new Class[]{String.class, byte[].class, int.class, int.class, ClassLoader.class, ProtectionDomain.class}); ++ return (Class) defineClass.invoke(unsafe, className, classBytes, 0, classBytes.length, classLoader, null); ++ } catch (Exception e) { ++ throw new RuntimeException(e.getMessage(), e); ++ } + } + + /** ===================================== debian/patches/series ===================================== @@ -1 +1,3 @@ 01-jar-packaging.patch +02-java11-compatibility.patch + View it on GitLab: https://salsa.debian.org/java-team/gmbal-pfl/compare/536a8ef1d2bf491d48e380932dea8ecffb1cf328...e5de204448eb995b192985837066c1216d14a2ee -- View it on GitLab: https://salsa.debian.org/java-team/gmbal-pfl/compare/536a8ef1d2bf491d48e380932dea8ecffb1cf328...e5de204448eb995b192985837066c1216d14a2ee You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ pkg-java-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

