Skip to content

Commit ffa6340

Browse files
author
Roger Riggs
committed
8351567: Jar Manifest test ValueUtf8Coding produces misleading diagnostic output
Reviewed-by: lancea, bpb, iris
1 parent 8d8bd0c commit ffa6340

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/jdk/java/util/jar/Manifest/ValueUtf8Coding.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2025, 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
@@ -37,7 +37,7 @@
3737

3838
/**
3939
* @test
40-
* @bug 8066619
40+
* @bug 8066619 8351567
4141
* @run testng ValueUtf8Coding
4242
* @summary Tests encoding and decoding manifest header values to and from
4343
* UTF-8 with the complete Unicode character set.
@@ -201,10 +201,6 @@ static Manifest writeAndRead(Manifest mf) throws IOException {
201201
mf.write(out);
202202
byte[] mfBytes = out.toByteArray();
203203

204-
System.out.println("-".repeat(72));
205-
System.out.print(new String(mfBytes, UTF_8));
206-
System.out.println("-".repeat(72));
207-
208204
ByteArrayInputStream in = new ByteArrayInputStream(mfBytes);
209205
return new Manifest(in);
210206
}

0 commit comments

Comments
 (0)