Details
-
Bug
-
Resolution: Fixed
-
P4
-
11, 14
-
b24
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8241688 | 13.0.3 | Lance Andersen | P4 | Resolved | Fixed | b02 |
JDK-8234652 | 11.0.6 | Lance Andersen | P4 | Resolved | Fixed | b05 |
Description
test/jdk/jdk/nio/zipfs/CRCWriteTest.java
This test was introduced byJDK-8232879. It fails on all platforms.
Failure reproducible after fix the issue of runs zero test:
===============================================
jdk/nio/zipfs/CRCWriteTest.java
Total tests run: 0, Failures: 0, Skips: 0
===============================================
+++ b/test/jdk/jdk/nio/zipfs/CRCWriteTest.java
@@ -57,7 +57,7 @@
* can be used successfully with the OutputStream write methods
*/
@Test
- private void zipFsOsDeflatedWriteTest() throws Exception {
+ public void zipFsOsDeflatedWriteTest() throws Exception {
With this, test is actually run, and it fails:
test CRCWriteTest.zipFsOsDeflatedWriteTest(): failure
java.lang.AssertionError: expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:496)
at org.testng.Assert.assertTrue(Assert.java:42)
at org.testng.Assert.assertTrue(Assert.java:52)
at CRCWriteTest.verify(CRCWriteTest.java:126)
at CRCWriteTest.zipFsOsDeflatedWriteTest(CRCWriteTest.java:77)
...
===============================================
jdk/nio/zipfs/CRCWriteTest.java
Total tests run: 1, Failures: 1, Skips: 0
===============================================
This test was introduced by
Failure reproducible after fix the issue of runs zero test:
===============================================
jdk/nio/zipfs/CRCWriteTest.java
Total tests run: 0, Failures: 0, Skips: 0
===============================================
+++ b/test/jdk/jdk/nio/zipfs/CRCWriteTest.java
@@ -57,7 +57,7 @@
* can be used successfully with the OutputStream write methods
*/
@Test
- private void zipFsOsDeflatedWriteTest() throws Exception {
+ public void zipFsOsDeflatedWriteTest() throws Exception {
With this, test is actually run, and it fails:
test CRCWriteTest.zipFsOsDeflatedWriteTest(): failure
java.lang.AssertionError: expected [true] but found [false]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:496)
at org.testng.Assert.assertTrue(Assert.java:42)
at org.testng.Assert.assertTrue(Assert.java:52)
at CRCWriteTest.verify(CRCWriteTest.java:126)
at CRCWriteTest.zipFsOsDeflatedWriteTest(CRCWriteTest.java:77)
...
===============================================
jdk/nio/zipfs/CRCWriteTest.java
Total tests run: 1, Failures: 1, Skips: 0
===============================================
Attachments
Issue Links
- backported by
-
JDK-8234652 (zipfs) jdk/nio/zipfs/CRCWriteTest.java fails
-
- Resolved
-
-
JDK-8241688 (zipfs) jdk/nio/zipfs/CRCWriteTest.java fails
-
- Resolved
-
- relates to
-
JDK-8232879 (zipfs) Writing out data with ZipFileSystem leads to a CRC failure in the generated jar file
-
- Closed
-