#1011929 libexternalsortinginjava-java: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests

#1011929#5
Date:
2022-05-26 20:44:11 UTC
From:
To:
libexternalsortinginjava-java fails to build with OpenJDK 17, the tests make illegal
reflective accesses into java.base/java.lang:


  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running com.google.code.externalsorting.csv.CsvExternalSortTest
  [ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.094 s <<< FAILURE! - in com.google.code.externalsorting.csv.CsvExternalSortTest
  [ERROR] testNonLatin(com.google.code.externalsorting.csv.CsvExternalSortTest)  Time elapsed: 0.003 s  <<< ERROR!
  java.lang.reflect.InaccessibleObjectException: Unable to make field private static volatile java.nio.charset.Charset java.nio.charset.Charset.defaultCharset accessible: module java.base does not "opens java.nio.charset" to unnamed module @4cfaf581
          at com.google.code.externalsorting.csv.CsvExternalSortTest.testNonLatin(CsvExternalSortTest.java:75)

  [ERROR] testNonLatin(com.google.code.externalsorting.csv.CsvExternalSortTest)  Time elapsed: 0.003 s  <<< ERROR!
  java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "this.outputfile" is null
          at com.google.code.externalsorting.csv.CsvExternalSortTest.onTearDown(CsvExternalSortTest.java:192)

  [INFO] Running com.google.code.externalsorting.ExternalSortTest
  #ignore = 67412000
  [performance] String size estimator uses 1.033203125 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.0146484375 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.0263671875 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.0263671875 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.39453125 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.5654296875 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.4736328125 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.462890625 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.0126953125 ns per string
  #ignore = 67412000
  [performance] String size estimator uses 1.017578125 ns per string
  java com.google.externalsorting.ExternalSort inputfile outputfile
  Flags are:
  -v or --verbose: verbose output
  -d or --distinct: prune duplicate lines
  -t or --maxtmpfiles (followed by an integer): specify an upper bound on the number of temporary files
  -c or --charset (followed by a charset code): specify the character set to use (for sorting)
  -z or --gzip: use compression for the temporary files
  -H or --header (followed by an integer): ignore the first few lines
  -s or --store (following by a path): where to store the temporary files
  -h or --help: display this message
  please provide input and output file names
  java com.google.externalsorting.ExternalSort inputfile outputfile
  Flags are:
  -v or --verbose: verbose output
  -d or --distinct: prune duplicate lines
  -t or --maxtmpfiles (followed by an integer): specify an upper bound on the number of temporary files
  -c or --charset (followed by a charset code): specify the character set to use (for sorting)
  -z or --gzip: use compression for the temporary files
  -H or --header (followed by an integer): ignore the first few lines
  -s or --store (following by a path): where to store the temporary files
  -h or --help: display this message
  please provide input and output file names
  java com.google.externalsorting.ExternalSort inputfile outputfile
  Flags are:
  -v or --verbose: verbose output
  -d or --distinct: prune duplicate lines
  -t or --maxtmpfiles (followed by an integer): specify an upper bound on the number of temporary files
  -c or --charset (followed by a charset code): specify the character set to use (for sorting)
  -z or --gzip: use compression for the temporary files
  -H or --header (followed by an integer): ignore the first few lines
  -s or --store (following by a path): where to store the temporary files
  -h or --help: display this message
  created 1 tmp files
  please provide input and output file names
  java com.google.externalsorting.ExternalSort inputfile outputfile
  Flags are:
  -v or --verbose: verbose output
  -d or --distinct: prune duplicate lines
  -t or --maxtmpfiles (followed by an integer): specify an upper bound on the number of temporary files
  -c or --charset (followed by a charset code): specify the character set to use (for sorting)
  -z or --gzip: use compression for the temporary files
  -H or --header (followed by an integer): ignore the first few lines
  -s or --store (following by a path): where to store the temporary files
  -h or --help: display this message
  [WARNING] Tests run: 14, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.156 s - in com.google.code.externalsorting.ExternalSortTest
  [INFO]
  [INFO] Results:
  [INFO]
  [ERROR] Errors:
  [ERROR] com.google.code.externalsorting.csv.CsvExternalSortTest.testNonLatin(com.google.code.externalsorting.csv.CsvExternalSortTest)
  [ERROR]   Run 1: CsvExternalSortTest.testNonLatin:75 » InaccessibleObject Unable to make field ...
  [ERROR]   Run 2: CsvExternalSortTest.onTearDown:192 NullPointer Cannot invoke "java.io.File.exi...
  [INFO]
  [INFO]
  [ERROR] Tests run: 18, Failures: 0, Errors: 1, Skipped: 1

#1011929#8
Date:
2022-05-31 10:15:41 UTC
From:
To:
Hello,

Bug #1011929 in libexternalsortinginjava-java 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/libexternalsortinginjava-java/-/commit/cae8396e1966ca29ab839c913d62186735fceec5

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1011929

#1011929#15
Date:
2022-05-31 10:33:50 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libexternalsortinginjava-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 1011929@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 libexternalsortinginjava-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: Tue, 31 May 2022 12:15:15 +0200
Source: libexternalsortinginjava-java
Architecture: source
Version: 0.6.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1011929
Changes:
 libexternalsortinginjava-java (0.6.1-2) unstable; urgency=medium
 .
   * Team upload.
   * Fixed the build failure with OpenJDK 17 (Closes: #1011929)
   * Removed the -java-doc package
   * Standards-Version updated to 4.6.1
Checksums-Sha1:
 9730c1755f819319fa4f9b483d58e2acd4f6b8d1 2232 libexternalsortinginjava-java_0.6.1-2.dsc
 477ec2fd1291fdea2d0de3bd190f75c20238b3bf 3984 libexternalsortinginjava-java_0.6.1-2.debian.tar.xz
 7c616c3f442434e829a44f84ff77474c1a9743fa 14894 libexternalsortinginjava-java_0.6.1-2_source.buildinfo
Checksums-Sha256:
 56a1e0ca39a18d45b91e9f6e32a6c9dd7074bc8744c273c630a22e236a0e26d0 2232 libexternalsortinginjava-java_0.6.1-2.dsc
 9db583222fa80873127f3161d2832727782c39fad57ede5c8a91766443291204 3984 libexternalsortinginjava-java_0.6.1-2.debian.tar.xz
 d97044305c1c1b94cabae6f6aad0cdf0c440210892dd2631f8f67cbcbb5af84b 14894 libexternalsortinginjava-java_0.6.1-2_source.buildinfo
Files:
 f25b8f3d0862851cdefbb7f32650944b 2232 java optional libexternalsortinginjava-java_0.6.1-2.dsc
 f931cbc21fd156836671c645e0d373a3 3984 java optional libexternalsortinginjava-java_0.6.1-2.debian.tar.xz
 37a392b0b8ae7948e4f1c08f251b1c67 14894 java optional libexternalsortinginjava-java_0.6.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmKV6scSHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCspBAQAMiNwfahN/kTGWpE1k7TstzL6C2MXRIz
Uoaz+kJl4AX4VKS0tM9r9xQx/PFqqUWYc054lBpYOc6Bk6ns5XjFD4D5tfwB5h7I
Wx9G3bUPphNE3+BWPIBbJmBGVIK0lV/8xmiA1Ak3RMWCvE2baldGHPN1VG1WQDBb
gHTaka9JKJgzjxtJ6QCNPldqZSsUdqaP0+IpR5fsuMJ4q1pwoox1Afel+E5ndfj0
haBquWn5xMm8EaKrS8x2o1hXSaGqYfwHW9e6jjBo+6veeNk86ZoWMkNi71wpj1yn
JmKjyC5HPZ33l8yBDk/iLainoc+MEfZ1kucp8mEKrGJOuX9Aqy0ndoON/ogD1VD9
9cjrfw/7L2FH4w04n7kBDIF7v9xTLY8IlGL57zSoV6mknB9GriZcSWnF7AInEult
lOS2fQI+7GjvOlKrjWe4oIKS6FAbBscHn+tTwVpCy3RdM5lGFgQMj8DC4NwsP7yw
0ZHELtIj+IKdzongMFqr5nRb+1XcO/8jQy1RhO0jPoRA3JASPiPHFdYcV2GP9InV
DBbFPhUCObUYLXfof4q8l1P15FPHn1sb61SKtUMk7TRU6MazEt2a3kvc12K0mPHE
JcmNNhCfaTnv/LgwnN/9XaFMKN7rYFqV0CprkJCTrB/7eck6NIwMpHux2L7s2Vqp
TZcfWS1QQcXp
=7/um
-----END PGP SIGNATURE-----