RFR 8234080: jdk/nio/zipfs/CRCWriteTest.java fails
Lance Andersen
lance.andersen at oracle.com
Wed Nov 13 17:26:52 UTC 2019
HI
Please review this test fix which I must have accidentally rolled back in intellij and did not catch. I have run mach5 tests and it is passing (and running ;-) )
———————————
$ hg diff
diff -r 57ad70bcf06c test/jdk/jdk/nio/zipfs/CRCWriteTest.java
--- a/test/jdk/jdk/nio/zipfs/CRCWriteTest.java Wed Nov 13 11:27:50 2019 +0000
+++ b/test/jdk/jdk/nio/zipfs/CRCWriteTest.java Wed Nov 13 12:24:01 2019 -0500
@@ -57,10 +57,10 @@
* can be used successfully with the OutputStream write methods
*/
@Test
- private void zipFsOsDeflatedWriteTest() throws Exception {
+ public void zipFsOsDeflatedWriteTest() throws Exception {
Files.deleteIfExists(JAR_FILE);
String[] msg = {"Hello ", "Tennis Anyone", "!!!!"};
- Entry e0 = Entry.of("Entry-0", ZipEntry.DEFLATED, Arrays.toString(msg));
+ Entry e0 = Entry.of("Entry-0", ZipEntry.DEFLATED, String.join("",msg));
try (FileSystem zipfs = FileSystems.newFileSystem(JAR_FILE,
Map.of("create", "true"))) {
———————————————
Best
Lance
<http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191113/1bb7e954/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle_sig_logo.gif
Type: image/gif
Size: 658 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191113/1bb7e954/oracle_sig_logo-0001.gif>
More information about the nio-dev
mailing list