#1011561 jnr-enxio: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests

Package:
src:jnr-enxio
Source:
jnr-enxio
Submitter:
Emmanuel Bourg
Date:
2022-05-31 06:24:04 UTC
Severity:
important
Tags:
#1011561#5
Date:
2022-05-24 22:09:21 UTC
From:
To:
jnr-enxio fails to build with OpenJDK 17, the tests make an illegal
reflective access into java.base/java.io:


  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running jnr.enxio.channels.NativeTest
  [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.057 s <<< FAILURE! - in jnr.enxio.channels.NativeTest
  [ERROR] closeThrowsOnNativeError(jnr.enxio.channels.NativeTest)  Time elapsed: 0.007 s  <<< ERROR!
  java.lang.reflect.InaccessibleObjectException: Unable to make field private int java.io.FileDescriptor.fd accessible: module java.base does not "opens java.io" to unnamed module @4cfaf581
          at jnr.enxio.channels.NativeTest.closeThrowsOnNativeError(NativeTest.java:20)

  [INFO]
  [INFO] Results:
  [INFO]
  [ERROR] Errors:
  [ERROR]   NativeTest.closeThrowsOnNativeError:20 » InaccessibleObject Unable to make fie...
  [INFO]
  [ERROR] Tests run: 1, 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.io=ALL-UNNAMED

#1011561#10
Date:
2022-05-31 06:07:20 UTC
From:
To:
Hello,

Bug #1011561 in jnr-enxio 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/jnr-enxio/-/commit/9ae46a890af0cd5452344c35c89428cbcd2cf34a

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1011561

#1011561#17
Date:
2022-05-31 06:20:44 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
jnr-enxio, 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 1011561@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 jnr-enxio 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: Tue, 31 May 2022 08:06:23 +0200
Source: jnr-enxio
Architecture: source
Version: 0.32.13-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1011561
Changes:
 jnr-enxio (0.32.13-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release
   * Fixed the build failure with OpenJDK 17 GA (Closes: #1011561)
   * Removed the -java-doc package
   * Standards-Version updated to 4.6.1
Checksums-Sha1:
 23a9eb21b420ebcae27f2310c9f3ae50670de1da 2183 jnr-enxio_0.32.13-1.dsc
 5813f2c5e8b4658ec7f3d5ea959f4115f25c565f 11272 jnr-enxio_0.32.13.orig.tar.xz
 9c79aca1c41650d34299a5c9908401f560583c9e 2688 jnr-enxio_0.32.13-1.debian.tar.xz
 a6c513324e924b2f6af135aea24f53e3a11b34fb 18076 jnr-enxio_0.32.13-1_source.buildinfo
Checksums-Sha256:
 d9058056240f550efdcf64a0f7b6f53c8ba196fc18d13fb6c5b121f785fae732 2183 jnr-enxio_0.32.13-1.dsc
 5709a712d3509befee4f5946f3c5d5a70cdca273769e857489ef5c3f6206c1e3 11272 jnr-enxio_0.32.13.orig.tar.xz
 aa16bb30c23acf2e1c8d953df5c441f4ab773cb0f9374e8603943a64c14d1137 2688 jnr-enxio_0.32.13-1.debian.tar.xz
 f1024d5f1aa038d56f2f9660f2202d46b015f76c41ad50d36a22f03ab6782d14 18076 jnr-enxio_0.32.13-1_source.buildinfo
Files:
 e71188f762457a6c92e8c4f17314bce1 2183 java optional jnr-enxio_0.32.13-1.dsc
 50e362f7f3bd807333b5b51fb0357a31 11272 java optional jnr-enxio_0.32.13.orig.tar.xz
 5be9a02a5793edf1ee035b6f6981c9a4 2688 java optional jnr-enxio_0.32.13-1.debian.tar.xz
 43494f67a570fdfd40113b612f8e4802 18076 java optional jnr-enxio_0.32.13-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmKVsIsSHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsdU4P/0279qXxZ72CVS49T/FftgRVIrkxITlo
XQBIsvNk1AaLh9cqi3F298azGGcRYlhy59B9dm/9abMzbCRaAKr1+Y7saQMX9KOu
U6JOyHJyeQgt9GGvEAZ27hY1nB5iGAJZMwtAUFUOc6EqOm/GtD6Dvz2M/HUMhnIu
LDePG8A9ly0Q0ACrwK7mVeoClan3lm/lI29JVJjkWwV0+zlqAs3VZwrYX+99JUHh
hIhmghaYza/eXXF7OKW4JF9vlU15CnEXhiQRpX56EhjQURhwEmyIHrMc37n9Ya0W
UOX2aAofqveFJzerMnRsGsqyWO8YvLLx490NQdeyYtD31gHBdSgJSyRTMGLP2myF
pWfdGUpm00FfAlzH5V5W0fZcr7NlShurS++ofbK6nN2Qb7wA/vUvHXlIsTj6/Ea7
vSvxsYs3eT7NJGmTESMC2MbIcCZlkQNZWMWYg43xAuquWihR6s+jb8NX+1/B3USj
HQoX2O/tRHT2T8+JvBoXzUtW8MmdzorfZfg1GYvPbeaWP6qRtXK2hNsZtYINtz2D
lJOuVkV3U6NET1aWbOvoqFWnLXVfFjnH8V4jGBmsNv1uWF5L0DyDgn15QbL3QL10
YsG1Xc85m13rSqH8LtvA+HYvbyS9pI94mBc1gVejo4jlHss3MlZxPtlHMlzZv2ct
TumgULkY58dY
=I/C5
-----END PGP SIGNATURE-----