cglib fails to build with OpenJDK 17, the tests make an illegal
reflective access into java.base/java.lang:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running net.sf.cglib.reflect.TestReflectPerf
iteration count: 1000000
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.046 s <<< FAILURE! - in net.sf.cglib.reflect.TestReflectPerf
[ERROR] testReflectPerf(net.sf.cglib.reflect.TestReflectPerf) Time elapsed: 0.033 s <<< ERROR!
java.lang.IllegalStateException: Unable to load cache item
at net.sf.cglib.reflect.TestReflectPerf.testReflectPerf(TestReflectPerf.java:37)
Caused by: java.lang.ExceptionInInitializerError
at net.sf.cglib.reflect.TestReflectPerf.testReflectPerf(TestReflectPerf.java:37)
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @4cfaf581
at net.sf.cglib.reflect.TestReflectPerf.testReflectPerf(TestReflectPerf.java:37)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @4cfaf581
at net.sf.cglib.reflect.TestReflectPerf.testReflectPerf(TestReflectPerf.java:37)
Hello, Bug #1011566 in cglib reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/java-team/cglib/-/commit/0512acbe1794c6be4b86379e6c0b7064940ad695 (this message was generated automatically) -- Greetings https://bugs.debian.org/1011566
We believe that the bug you reported is fixed in the latest version of cglib, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1011566@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Emmanuel Bourg <ebourg@apache.org> (supplier of updated cglib package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Mon, 30 May 2022 15:04:55 +0200 Source: cglib Architecture: source Version: 3.3.0-1 Distribution: unstable Urgency: medium Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Changed-By: Emmanuel Bourg <ebourg@apache.org> Closes: 1011566 Changes: cglib (3.3.0-1) unstable; urgency=medium . * New upstream release * Fixed some of the test failures with OpenJDK 17 (Closes: #1011566) * Standards-Version updated to 4.6.1 * Switch to debhelper level 13 * Removed the -java-doc package Checksums-Sha1: a06253817a439eedb6579bef32954034390b16c2 2090 cglib_3.3.0-1.dsc c5178ded3562143f8b76ea9137915988ee6f374c 112728 cglib_3.3.0.orig.tar.xz bfe318da8d50fd8dcd1cd136155ceaceee0d1119 5976 cglib_3.3.0-1.debian.tar.xz c4d5f9e042323944851a1ae924a3970b3a6ce863 14838 cglib_3.3.0-1_source.buildinfo Checksums-Sha256: 3c0c90a436d51e9871c0face5514f5fe086e22fb64f6a3b75af62c87e0759fd7 2090 cglib_3.3.0-1.dsc 8b4efb16405fc8054d842ed965077b5c00c828e1ad3ef5ae57e0d182eb864c36 112728 cglib_3.3.0.orig.tar.xz e85e4f8eec8ecccc652fa4123e44ba9e2907e66a423c7bba83433b9e006e8445 5976 cglib_3.3.0-1.debian.tar.xz 76e75b2766833ebc0ce5a01f37749bbf8728e28f6df2b9eca42e673640db4555 14838 cglib_3.3.0-1_source.buildinfo Files: 057365a71a52e358285f0f5e5ec6a4c6 2090 java optional cglib_3.3.0-1.dsc b69e6a8ee79b510b6f6876d080cb04dc 112728 java optional cglib_3.3.0.orig.tar.xz fcb919e3c98ffa087c1ec25c32a166c5 5976 java optional cglib_3.3.0-1.debian.tar.xz 68621eed8265184d3788751023d6fde1 14838 java optional cglib_3.3.0-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmKUwQQSHGVib3VyZ0Bh cGFjaGUub3JnAAoJEPUTxBnkudCsMbIP/25qhbiopkVVZOpRTjxyhNlxxGXocVJz JrFdD33kUctDvHuBViFFrIMpv1ZZHsaTUD8CIg4g4wcQkqq/60sOAo/BnIfX0Czm TVvi59if20MhGaLJpWGZmbowcqiJkwKPxfmZqGi+mLTrKOtRkqC3zB456db00W9h 3U/7L/RKm0pWFRtNfECug6qbDR1OOGzgYAZR1/cSJABa/5un/ciODzdW10XFpgXT 2JEFrJJH/lki/tjU6WTre+qsRYSVF7GnCrALfxNUz/KYxq5mFjmPwbQ3pzHdRq1V qDirhwyufS2BVvuvx2xE6Oi6fFo3BWSan4sxGSY71JS81fLMqlwwBzCDrhHH1gTT obnzvXxJqWZQfdgUi2RW8DoIToFnI1Cg+vlCr6KzSJADBMy/sfpq43Ex6Z0Jecuk RnoyhGg+lVSjP/iXGJkWZ1VCsMI825kXUe71P1+vnnS4tvkWEpztnElNueyNlDNb 7MJXT5gTJr2R03NawIFXoCSsV/J/0QnK+TTl4zbUWFyPq4yJDdwbmZqAFpI84XPV B+6GzDFVJsqtDYCin6g1AgbewE2wEgDiiog2Aq1X59yzcVRxP1FjnkOQJsoeJt32 sAEwuk66o2Gwvzk876JI780hvpDEQ6XpDy0jbQ9Ws/p1rI/AeuLq/mSDG5F7cjKF /P+nRRdmYMrm =UkDn -----END PGP SIGNATURE-----