#1011543 libobject-cloner-java: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests

#1011543#5
Date:
2022-05-24 19:34:41 UTC
From:
To:
libobject-cloner-java fails to builds with OpenJDK 17, a test case makes
an illegal reflective access and triggers an error:


  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running org.kamranzafar.commons.cloner.ObjectClonerTest
  [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.034 s <<< FAILURE! - in org.kamranzafar.commons.cloner.ObjectClonerTest
  [ERROR] deepClone(org.kamranzafar.commons.cloner.ObjectClonerTest)  Time elapsed: 0.009 s  <<< ERROR!
  java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @4cfaf581
          at org.kamranzafar.commons.cloner.ObjectClonerTest.deepClone(ObjectClonerTest.java:56)

  [INFO]
  [INFO] Results:
  [INFO]
  [ERROR] Errors:
  [ERROR]   ObjectClonerTest.deepClone:56 » InaccessibleObject Unable to make field privat...
  [INFO]
  [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------


This can be fixed by adding this parameter to debian/maven.properties:

  argLine=--add-opens java.base/java.lang=ALL-UNNAMED

#1011543#10
Date:
2022-05-27 15:35:11 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libobject-cloner-java, 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 1011543@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 libobject-cloner-java 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: Fri, 27 May 2022 17:06:58 +0200
Source: libobject-cloner-java
Architecture: source
Version: 0.2~git95dba2c-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1011543
Changes:
 libobject-cloner-java (0.2~git95dba2c-3) unstable; urgency=medium
 .
   * Team upload.
   * Fixed the build failure with OpenJDK 17 (Closes: #1011543)
Checksums-Sha1:
 f8b0630313562e0c1032f4c04bf105901b52bb6f 2258 libobject-cloner-java_0.2~git95dba2c-3.dsc
 11f5b9c6c6f5c84b3583f41e2953a960468b5e14 2476 libobject-cloner-java_0.2~git95dba2c-3.debian.tar.xz
 493ee5abdaae2763143e93601d8976956283e133 14898 libobject-cloner-java_0.2~git95dba2c-3_source.buildinfo
Checksums-Sha256:
 a589d17bf88ec6c93c235c95cae399b41d50fb556282a58dbb84a8dbe86551aa 2258 libobject-cloner-java_0.2~git95dba2c-3.dsc
 8dfeecf315bb0e05043e64b9178acdf3e5c59a03291850e07a2bc4cc0b3fc6bc 2476 libobject-cloner-java_0.2~git95dba2c-3.debian.tar.xz
 2a0501c6776bcafdaa05e28b8255b9b47491200d360d75160c8dd4b293ea5bf7 14898 libobject-cloner-java_0.2~git95dba2c-3_source.buildinfo
Files:
 5a40fee26f80683fa0d3e68bc3ca92c5 2258 java optional libobject-cloner-java_0.2~git95dba2c-3.dsc
 cbb8710cd573c38a4d0c4f8ec954c9a7 2476 java optional libobject-cloner-java_0.2~git95dba2c-3.debian.tar.xz
 59f26dbc663fac2bc18b761112dc3e5d 14898 java optional libobject-cloner-java_0.2~git95dba2c-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmKQ6TASHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsZLoP/2xMiYdpSP9NEpl+fI+cevWiFyUjXc9l
zgee6bPsZICT/wuLRIIWpvkExNhrQOchk2Fn4QgUzWlj+2ZEnLVks9LZ5gWxWR9O
wPzuz06L7BQjhrt016Ve3KZHHw3kizLsb2sgHd+GFumeCumUX6BHed57tpcrtG6O
u17T1j0mf3FqAUORO01jrJwPRr72g4U8ATM2rIVVQYM87SqsEE/+oYthpx1ol7Ka
EthZLDZryjnFhH9V+1ARy86O0jm1/g1bn2TCaPp54WDRsNYjTuAZkbBTy/eRSzqs
vnjd4IaH0cyoYkAufRPHj1TJ4j+lfOSX+12JKaq8OKPB6o5rRqNyeRM99ocJf+bm
09fsIWgvJnaryVsa9tJpNII5gxnQVhXYwmyPIIRgBwEkL151zKQ79TjtguCctS+d
PxxETLYGSBsweEzUWwCvNUfAvnA4LO2Be/YWK+iWy63sVyWu5Maj7H07QERQj8yR
fGKAQSh2ds9/O1YkiwNeNmqZmCIhGuaB1qHAKpoIgGQSbWy+xTY6HepJ30WyMqVw
gQtMD+bsmjP1erG8l4Lkq/FId4b0qeER1Kiey5uetBo84SZ0K53JcpGOOdHvskUM
aTpSfuZYPuWZ3OEeKTEnPdcIKMGPJmOXRUSldcHDwXz3sP+NfF+gGAdFsO0r3uwf
3pkBw7tTKWsa
=Q9uT
-----END PGP SIGNATURE-----