#1011925 tiles-autotag: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests

#1011925#5
Date:
2022-05-26 20:21:58 UTC
From:
To:
tiles-autotag 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 org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest
  [ERROR] Tests run: 5, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.07 s <<< FAILURE! - in org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest
  [ERROR] testEvaluateWithoutWriting(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.042 s  <<< ERROR!
  java.lang.ExceptionInInitializerError
          at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)
  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 org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)
  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 org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWriting(AbstractModelBodyTest.java:95)

  [ERROR] testEvaluateWithoutWritingException(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0 s  <<< ERROR!
  java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.NoClassDefFoundError>
          at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateWithoutWritingException(AbstractModelBodyTest.java:111)

  [ERROR] testEvaluateAsStringException(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.001 s  <<< ERROR!
  java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.NoClassDefFoundError>
          at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluateAsStringException(AbstractModelBodyTest.java:75)

  [ERROR] testEvaluate(org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest)  Time elapsed: 0.001 s  <<< ERROR!
  java.lang.NoClassDefFoundError: Could not initialize class org.easymock.internal.ClassProxyFactory$2
          at org.apache.tiles.autotag.core.runtime.AbstractModelBodyTest.testEvaluate(AbstractModelBodyTest.java:46)

  [INFO] Running org.apache.tiles.autotag.core.runtime.util.NullWriterTest
  [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in org.apache.tiles.autotag.core.runtime.util.NullWriterTest
  [INFO]
  [INFO] Results:
  [INFO]
  [ERROR] Errors:
  [ERROR]   AbstractModelBodyTest.testEvaluate:46 » NoClassDefFound Could not initialize c...
  [ERROR]   AbstractModelBodyTest.testEvaluateAsStringException »  Unexpected exception, e...
  [ERROR]   AbstractModelBodyTest.testEvaluateWithoutWriting:95 » ExceptionInInitializer
  [ERROR]   AbstractModelBodyTest.testEvaluateWithoutWritingException »  Unexpected except...
  [INFO]
  [ERROR] Tests run: 8, Failures: 0, Errors: 4, Skipped: 0

#1011925#8
Date:
2022-05-30 10:47:46 UTC
From:
To:
Hello,

Bug #1011925 in tiles-autotag 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/tiles-autotag/-/commit/dfb97b2624ac242dcd81f906ef7fe310f521346d

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1011925

#1011925#15
Date:
2022-05-30 11:04:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
tiles-autotag, 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 1011925@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 tiles-autotag 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 12:47:24 +0200
Source: tiles-autotag
Architecture: source
Version: 1.2-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1011925
Changes:
 tiles-autotag (1.2-4) unstable; urgency=medium
 .
   * Fixed the build failure with OpenJDK 17 (Closes: #1011925)
Checksums-Sha1:
 cdee0f0c9b013ab3c1e533772afdeccae12076a7 2240 tiles-autotag_1.2-4.dsc
 d65538d596807399af6705a1f2abc881849d397d 5876 tiles-autotag_1.2-4.debian.tar.xz
 23cf3afc63580a77cfa3ca7134ff278a32940c9b 14822 tiles-autotag_1.2-4_source.buildinfo
Checksums-Sha256:
 fab38b9100ccd3edd1621a9a6c3d1f2fe4a81b91d3a15a1c447f7336c28c2e8a 2240 tiles-autotag_1.2-4.dsc
 c38c395c6dc9cf37bb2710f471088a283753d7d74bdc4da3cdd386195bdd907a 5876 tiles-autotag_1.2-4.debian.tar.xz
 a6092925b76131d9dc6b4b516a347e80761ddbf0897e4b6b180b81c5a0c98ced 14822 tiles-autotag_1.2-4_source.buildinfo
Files:
 a07a64c1e70e0ee1bddcf87158ffa17c 2240 java optional tiles-autotag_1.2-4.dsc
 03ed1454ecdfe40fb50ebe707354d693 5876 java optional tiles-autotag_1.2-4.debian.tar.xz
 6a4e8c1263e963da00de76e5d6f5ee68 14822 java optional tiles-autotag_1.2-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmKUoMwSHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsjyMQAL5m6GK19xwbxB0Y5dc6tY7yobQIO8qe
cy0sFp4BR3V5qRdoe4MH35uboTbFBfFNzZZSgxkVDnCK2kHAu5hFqNni8YjCrT/D
uXQZPfTW/Fqnn4HniqrCCwzNb5nBjjwbieQPY7o9u64tx+/XzOA+OLjDN+s6afb+
x1Pq4y5gb887yQQ8Mw6HBawquk6EqTTWqZ/6UXiMVvWjHy/ECphmh6apG15Dg4ae
Od4uJmv7iDb72u+HcZNhhmHJ/sIHZIrSw7CpnCiW2juT+g8GV/tWzq3ZNA0GKmoS
vfWlNtHlYdc8MQDFd6q8qVTFBvI7AJLkUlK9+12l1OcL0U44YGWf3EBKikhikILI
QRZHuDsxDbkpkIe0L2EK/bwjE3I7FnGCtbDxzb19QQwjGJmvnxpACxRm0Jp4hien
Av0Dtv9tkcJuyxswDw8dfurg0vb4mmHE/Lcl21R8jr7sGkV70Q3VO3UOr+hUQW2A
mBGCvBsTgail6H767A5T6LTupMUVtWgoy+KkakPcg2siqndAzSWfXMiVfX6nY/Jq
jcc/2JEYx0K+Hlr27GP9V3cDrnxkSPt+0Jw0i4bWZenKeDJyC0lM5/RON4R61UD1
U6nGfth2AXj8YDyvb7otk/FzkR24USmm3vNwiZF2FqFV/LmA/SdDan7vVPagRDIe
nJ0JNy6sVPwQ
=JK5b
-----END PGP SIGNATURE-----