Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit b38f3cf

Browse files
committedFeb 28, 2020
8240226: DeflateIn_InflateOut.java test incorrectly assumes size of compressed file
Reviewed-by: martin, alanb
1 parent 8a79f26 commit b38f3cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎test/jdk/java/util/zip/DeflateIn_InflateOut.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -42,8 +42,6 @@ public class DeflateIn_InflateOut {
4242
private static InflaterOutputStream ios;
4343

4444
private static void reset() {
45-
new Random(new Date().getTime()).nextBytes(data);
46-
4745
bais = new ByteArrayInputStream(data);
4846
dis = new DeflaterInputStream(bais);
4947

@@ -218,6 +216,8 @@ private static void SkipBytes() throws Throwable {
218216

219217

220218
public static void realMain(String[] args) throws Throwable {
219+
new Random(new Date().getTime()).nextBytes(data);
220+
221221
ArrayReadWrite();
222222

223223
ArrayReadByteWrite();

0 commit comments

Comments
 (0)