Your message dated Mon, 16 Jul 2018 11:34:22 +0000
with message-id <[email protected]>
and subject line Bug#903774: fixed in libcommons-compress-java 1.17-1
has caused the Debian Bug report #903774,
regarding libcommons-compress-java: Build incompatible with Java 8, without 
need?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
903774: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903774
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libcommons-compress-java
Version: 1.13-2
Severity: normal

Maven with Java 8 can no longer build jars.

Caused by: java.lang.NoSuchMethodError:
java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;
    at org.apache.commons.compress.archivers.zip.ZipFile.tryToLocateSignature
(ZipFile.java:969)
    at
org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord
(ZipFile.java:946)
    at
org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory
(ZipFile.java:874)
    at
org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory
(ZipFile.java:612)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>
(ZipFile.java:294)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>
(ZipFile.java:217)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>
(ZipFile.java:186)
    at org.codehaus.plexus.archiver.jar.JarArchiver.grabFilesAndDirs
(JarArchiver.java:785)
    at org.codehaus.plexus.archiver.jar.JarArchiver.createIndexList
(JarArchiver.java:455)
    at org.codehaus.plexus.archiver.jar.JarArchiver.finalizeZipOutputStream
(JarArchiver.java:377)

This is caused by the following line:

https://sources.debian.org/src/libcommons-compress-
java/1.13-2/src/main/java/org/apache/commons/compress/archivers/zip/ZipFile.java/#L969

ByteBuffer used to inherit rewind() from Buffer.

Apparently in OpenJDK11, a new override for this method was added that returns
a ByteBuffer, which makes method chaining easier (in older JDK,
buf.rewind().something() would only work if something is defined on Buffer).
But this new signature cannot be found with earlier JDKs, and causes the
incompatibility seen above.

The root cause is in the JDK11, here:
http://hg.openjdk.java.net/jdk/jdk11/file/a602706ccaaa/src/java.base/share/classes/java/nio/X-Buffer.java.template#l1163
which specializes the rewind() method's return type.

This issue can *possibly* be resolved by casting wordBbuf to Buffer where possible (it will likely also apply to flip(), clear(), reset(), mark(), limit(), position(), and possibly some other methods), and that may or may not be enough to restore compatibility with older JDKs.

But supposedly the better approach is to compile commons-compress against Java
8 for now?



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcommons-compress-java depends on:
ii  libcommons-parent-java  43-1

libcommons-compress-java recommends no packages.

Versions of packages libcommons-compress-java suggests:
ii  libxz-java  1.8-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: libcommons-compress-java
Source-Version: 1.17-1

We believe that the bug you reported is fixed in the latest version of
libcommons-compress-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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <[email protected]> (supplier of updated 
libcommons-compress-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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 16 Jul 2018 13:11:58 +0200
Source: libcommons-compress-java
Binary: libcommons-compress-java
Architecture: source
Version: 1.17-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<[email protected]>
Changed-By: Emmanuel Bourg <[email protected]>
Description:
 libcommons-compress-java - Java API for working with compression and archive 
formats
Closes: 903774
Changes:
 libcommons-compress-java (1.17-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream release
     - Removed the CVE-2018-1324 patch (fixed upstream)
     - New build dependency on libmaven-antrun-plugin-java
     - Disabled Brotli support (dependency not in Debian)
     - Disabled Zstandard support (dependency not in Debian)
   * Rebuilt with Java 8 compatibility (Closes: #903774)
   * Standards-Version updated to 4.1.5
   * Use salsa.debian.org Vcs-* URLs
Checksums-Sha1:
 cb0cc899d9face6186024f455437a64de3ee258b 2397 
libcommons-compress-java_1.17-1.dsc
 42838169f36ad99f967f65c8401664cc8b09d130 9034588 
libcommons-compress-java_1.17.orig.tar.xz
 c14eaab8977c2afdaa0cb0a2ead0e42d79447cdc 5568 
libcommons-compress-java_1.17-1.debian.tar.xz
 5b8ab0ab3b966dc2e8ac09096ce42e48ff74d0c3 16261 
libcommons-compress-java_1.17-1_source.buildinfo
Checksums-Sha256:
 787b1b65926fe9d692f75411734221565e7abce5f6d2641ac8609a17a94f772f 2397 
libcommons-compress-java_1.17-1.dsc
 956b383de4ff734bc37fbada36d1e02391884201bce3309e0d25d022e57f194a 9034588 
libcommons-compress-java_1.17.orig.tar.xz
 e543fe2bd11849c84a71e0fe282339db53884b6dafa56966b9662c4e9609ad73 5568 
libcommons-compress-java_1.17-1.debian.tar.xz
 278ba6ddf80799257a0ed2a5f68e5bee2b8460b966800effc81f6dd82bca028c 16261 
libcommons-compress-java_1.17-1_source.buildinfo
Files:
 71c24ab8685937dba91a7c9ceb4c7828 2397 java optional 
libcommons-compress-java_1.17-1.dsc
 8cacb145284a300b4f2bdf3b108c46d1 9034588 java optional 
libcommons-compress-java_1.17.orig.tar.xz
 8a9492b76c1f87c37b427166c26d369b 5568 java optional 
libcommons-compress-java_1.17-1.debian.tar.xz
 bd8f65f410ba4a380001334bae8dfa16 16261 java optional 
libcommons-compress-java_1.17-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAltMfhASHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsyC4P/2drSJHfh+5hXwN+kS4fcQXes05Hn7JW
YYcqAGzxThW2laUzKTu6jGNak/V5mCcxcaFOCc/y7oPVKNZ6VWzRrbhbsskiL3JE
e7ZuYcFbYyVSxgDm7HNhIXOE90J0shVfQNx4T1RbQAJ69H9u8fpflXmVxNkRQAgi
wm5qKI4VA7UOYhCdXTed8u7BVB8wJP+pKy2Ej2vBpqi2ltqy/j8jBjEsI5hY4Idx
hR7dy++2w8jnj+sGDU04kvE1suQHrPdCOgblmCP+S7BOJvWxdByO+THS4CAvm5Mm
TfBqZfrgDh0QJbivvelZSdnTbO0H+5+z+8TzcU3zFkpyyKf3PwQ62WZzXbb0PWfj
6OQaKj0Q1QBDUffmZlmpg6aiJpfCGC63ANKBTtKgSUaaZGaxFPiKBVOcM1ueIJXw
byKcHKjba4JGqTU1xos1XJMfmKKngZYyGiwHyUW+QKkb0KkGt7w+l5cX20h2aWeH
cePn0Ut3jhDzMR9go5jdjl/Ys79IVJSPTouDIfuD6PjSCSnoKnaTc/re+e7s0slR
Uyyvcw/1U+B87bhAHB+3Tb4PmwzUQHdvyj4730rGJ2/cZ6RSruIi2P3XXdManWON
dn6KQKxWCLOI02m8Mzyc8B9XkBu4pOBg1jtfpaUS/yCtJpAq1LQGelqM0XLsjyKm
cPp0/2HINp8J
=eFYM
-----END PGP SIGNATURE-----

--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
[email protected] for discussions and questions.

Reply via email to