This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to branch master in repository libcommons-compress-java.
commit e199eba9beb720606f763bcc3450c64bd5520948 Author: Emmanuel Bourg <[email protected]> Date: Wed Apr 20 16:04:17 2016 +0200 Removed the Java 8 compatibility patch (fixed upstream) --- debian/changelog | 4 +- debian/patches/java8_build.patch | 136 ------------------------------- debian/patches/java8_build_changes.patch | 14 ---- debian/patches/series | 2 - 4 files changed, 3 insertions(+), 153 deletions(-) diff --git a/debian/changelog b/debian/changelog index ad29089..1120d1e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,7 @@ -libcommons-compress-java (1.10-3) UNRELEASED; urgency=medium +libcommons-compress-java (1.11-1) UNRELEASED; urgency=medium + * New upstream release + - Removed the Java 8 compatibility patch (fixed upstream) * Build with maven-debian-helper instead of ant. * Standards-Version updated to 3.9.8 (no changes) * Use secure Vcs-* URLs diff --git a/debian/patches/java8_build.patch b/debian/patches/java8_build.patch deleted file mode 100644 index e79069a..0000000 --- a/debian/patches/java8_build.patch +++ /dev/null @@ -1,136 +0,0 @@ -From a2cda30be14b3da01cbbbedc41b70daf6d88da8b Mon Sep 17 00:00:00 2001 -From: Stefan Bodewig <[email protected]> -Date: Sat, 24 Oct 2015 08:18:59 +0200 -Subject: [PATCH 1/1] COMPRESS-326 adjust tests to changes in Java's zip - package - ---- - .../compress/archivers/zip/ZipArchiveEntry.java | 8 ++++ - src/site/xdoc/limitations.xml | 4 ++ - .../archivers/zip/X5455_ExtendedTimestampTest.java | 43 +++++++++++++++------- - 4 files changed, 45 insertions(+), 14 deletions(-) - -diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java -index 4f66373..13db0ce 100644 ---- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java -+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java -@@ -743,6 +743,14 @@ public class ZipArchiveEntry extends java.util.zip.ZipEntry - } - } - -+ /** -+ * Wraps {@link ZipEntry#getTime} with a {@link Date} as the -+ * entry's last modified date. -+ * -+ * <p>Changes to the implementation of {@link ZipEntry#getTime} -+ * leak through and the returned value may depend on your local -+ * time zone as well as your version of Java.</p> -+ */ - public Date getLastModifiedDate() { - return new Date(getTime()); - } -diff --git a/src/site/xdoc/limitations.xml b/src/site/xdoc/limitations.xml -index 686951e..851f93e 100644 ---- a/src/site/xdoc/limitations.xml -+++ b/src/site/xdoc/limitations.xml -@@ -165,6 +165,10 @@ - of an archive will not be read correctly by - <code>ZipArchiveInputStream</code> if it used the STORED - method.</li> -+ <li><code>ZipArchiveEntry#getLastModifiedDate</code> uses -+ <code>ZipEntry#getTime</code> under the covers which may -+ return different times for the same archive when using -+ different versions onf Java.</li> - </ul> - </section> - </body> -diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestampTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestampTest.java -index 4761654..8447669 100644 ---- a/src/test/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestampTest.java -+++ b/src/test/java/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestampTest.java -@@ -100,6 +100,11 @@ public class X5455_ExtendedTimestampTest { - 1999's zip time: Jan 1st, 1999-01-01/00:00:02 - 1999's mod time: Jan 1st, 1999-01-01/00:00:01 - 1999's acc time: Jan 1st, 1999-01-01/00:00:03 -+ -+ Starting with a patch release of Java8, "zip time" actually -+ uses the extended time stamp field itself and should be the -+ same as "mod time". -+ http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/90df6756406f - */ - - File archive = getFile("COMPRESS-210_unix_time_zip_test.zip"); -@@ -116,8 +121,10 @@ public class X5455_ExtendedTimestampTest { - ZipArchiveEntry zae = en.nextElement(); - String name = zae.getName(); - X5455_ExtendedTimestamp xf = (X5455_ExtendedTimestamp) zae.getExtraField(X5455); -- Date z = adjustFromGMTToExpectedOffset(zae.getLastModifiedDate()); -+ Date rawZ = zae.getLastModifiedDate(); - Date m = xf.getModifyJavaTime(); -+ boolean zipTimeUsesExtendedTimestamp = rawZ.equals(m); -+ Date z = zipTimeUsesExtendedTimestamp ? rawZ : adjustFromGMTToExpectedOffset(rawZ); - Date a = xf.getAccessJavaTime(); - - String zipTime = DATE_FORMAT.format(z); -@@ -136,24 +143,30 @@ public class X5455_ExtendedTimestampTest { - if (year >= 0) { - switch (year) { - case 2107: -- // Zip time is okay up to 2107. -- assertEquals(year + "-01-01/00:00:02 +0000", zipTime); -+ if (!zipTimeUsesExtendedTimestamp) { -+ // Zip time is okay up to 2107. -+ assertEquals(year + "-01-01/00:00:02 +0000", zipTime); -+ } - // But the X5455 data has overflowed: - assertEquals("1970-11-24/17:31:45 +0000", modTime); - assertEquals("1970-11-24/17:31:47 +0000", accTime); - break; - case 2108: -- // Zip time is still okay at Jan 1st midnight (UTC) in 2108 -- // because we created the zip file in pacific time zone, so it's -- // actually still 2107 in the zip file! -- assertEquals(year + "-01-01/00:00:02 +0000", zipTime); -+ if (!zipTimeUsesExtendedTimestamp) { -+ // Zip time is still okay at Jan 1st midnight (UTC) in 2108 -+ // because we created the zip file in pacific time zone, so it's -+ // actually still 2107 in the zip file! -+ assertEquals(year + "-01-01/00:00:02 +0000", zipTime); -+ } - // The X5455 data is still overflowed, of course: - assertEquals("1971-11-24/17:31:45 +0000", modTime); - assertEquals("1971-11-24/17:31:47 +0000", accTime); - break; - case 2109: - // All three timestamps have overflowed by 2109. -- assertEquals("1981-01-01/00:00:02 +0000", zipTime); -+ if (!zipTimeUsesExtendedTimestamp) { -+ assertEquals("1981-01-01/00:00:02 +0000", zipTime); -+ } - assertEquals("1972-11-24/17:31:45 +0000", modTime); - assertEquals("1972-11-24/17:31:47 +0000", accTime); - -@@ -163,12 +176,14 @@ public class X5455_ExtendedTimestampTest { - - break; - default: -- // X5455 time is good from epoch (1970) to 2106. -- // Zip time is good from 1980 to 2107. -- if (year < 1980) { -- assertEquals("1980-01-01/08:00:00 +0000", zipTime); -- } else { -- assertEquals(year + "-01-01/00:00:02 +0000", zipTime); -+ if (!zipTimeUsesExtendedTimestamp) { -+ // X5455 time is good from epoch (1970) to 2106. -+ // Zip time is good from 1980 to 2107. -+ if (year < 1980) { -+ assertEquals("1980-01-01/08:00:00 +0000", zipTime); -+ } else { -+ assertEquals(year + "-01-01/00:00:02 +0000", zipTime); -+ } - } - assertEquals(year + "-01-01/00:00:01 +0000", modTime); - assertEquals(year + "-01-01/00:00:03 +0000", accTime); --- -1.9.1 - diff --git a/debian/patches/java8_build_changes.patch b/debian/patches/java8_build_changes.patch deleted file mode 100644 index eb217c3..0000000 --- a/debian/patches/java8_build_changes.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/src/changes/changes.xml -+++ b/src/changes/changes.xml -@@ -53,7 +53,10 @@ - breaks backwards compatibility for code which used the old package. - This also changes the superclass of ZCompressorInputStream. - "> -- -+ <action issue="COMPRESS-326" type="fix" date="2015-10-24"> -+ Adjusted unit test to updates in Java8 and later that change -+ the logic of ZipEntry#getTime. -+ </action> - <action issue="COMPRESS-317" type="fix" date="2015-06-09" - due-to="Lucas Werkmeister"> - ArrayIndexOutOfBoundsException when ZIP extra fields are read diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index 0cb824b..0000000 --- a/debian/patches/series +++ /dev/null @@ -1,2 +0,0 @@ -java8_build.patch -java8_build_changes.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libcommons-compress-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

