[Git][java-team/procyon][master] 3 commits: Fixed the build failure with Java 11 (Closes: #909259)

Emmanuel Bourg gitlab at salsa.debian.org
Mon Feb 25 10:41:06 GMT 2019


Emmanuel Bourg pushed to branch master at Debian Java Maintainers / procyon


Commits:
6cc3de7e by Emmanuel Bourg at 2019-02-25T10:34:33Z
Fixed the build failure with Java 11 (Closes: #909259)

- - - - -
b0a2d1af by Emmanuel Bourg at 2019-02-25T10:34:38Z
Standards-Version updated to 4.3.0

- - - - -
55e5490e by Emmanuel Bourg at 2019-02-25T10:35:09Z
Upload to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/05-java11-compatibility.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+procyon (0.5.32-5) unstable; urgency=medium
+
+  * Team upload.
+  * Fixed the build failure with Java 11 (Closes: #909259)
+  * Standards-Version updated to 4.3.0
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 25 Feb 2019 11:35:03 +0100
+
 procyon (0.5.32-4) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -10,7 +10,7 @@ Build-Depends:
  javahelper,
  libjcommander-java (>= 1.71-1~),
  maven-repo-helper
-Standards-Version: 4.1.4
+Standards-Version: 4.3.0
 Vcs-Git: https://salsa.debian.org/java-team/procyon.git
 Vcs-Browser: https://salsa.debian.org/java-team/procyon
 Homepage: https://bitbucket.org/mstrobel/procyon


=====================================
debian/patches/05-java11-compatibility.patch
=====================================
@@ -0,0 +1,23 @@
+Description: Fixes the compatibility with Java 11
+Author: Emmanuel Bourg <ebourg at apache.org>
+Bug: https://bitbucket.org/mstrobel/procyon/issues/331
+--- a/Procyon.Reflection/src/main/java/com/strobel/reflection/emit/TypeBuilder.java
++++ b/Procyon.Reflection/src/main/java/com/strobel/reflection/emit/TypeBuilder.java
+@@ -1231,12 +1231,15 @@
+ 
+             _hasBeenCreated = true;
+ 
+-            _generatedClass = (Class<T>) getUnsafeInstance().defineClass(
++            ClassLoader classloader = ClassLoader.getSystemClassLoader();
++            java.lang.reflect.Method defineClass = classloader.getClass().getDeclaredMethod("defineClass", String.class, byte[].class, int.class, int.class, ProtectionDomain.class);
++            defineClass.setAccessible(true);
++
++            _generatedClass = (Class<T>) defineClass.invoke(classloader,
+                 fullName,
+                 classBytes,
+                 0,
+                 classBytes.length,
+-                ClassLoader.getSystemClassLoader(),
+                 _protectionDomain
+             );
+ 


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
 02-cli-program-name.patch
 03-java9-compatibility.patch
 04-jcommander-compatibility.patch
+05-java11-compatibility.patch



View it on GitLab: https://salsa.debian.org/java-team/procyon/compare/69805dea253ecd4c743591126b0c944760726ca1...55e5490e8fb6f786228b3d12251e061b91752401

-- 
View it on GitLab: https://salsa.debian.org/java-team/procyon/compare/69805dea253ecd4c743591126b0c944760726ca1...55e5490e8fb6f786228b3d12251e061b91752401
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190225/bfd57cd4/attachment.html>


More information about the pkg-java-commits mailing list