8351567: Jar Manifest test ValueUtf8Coding produces misleading diagnostic output
Reviewed-by: lancea, bpb, iris
This commit is contained in:
parent
8d8bd0c4b3
commit
ffa6340988
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -37,7 +37,7 @@ import static org.testng.Assert.*;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 8066619
|
* @bug 8066619 8351567
|
||||||
* @run testng ValueUtf8Coding
|
* @run testng ValueUtf8Coding
|
||||||
* @summary Tests encoding and decoding manifest header values to and from
|
* @summary Tests encoding and decoding manifest header values to and from
|
||||||
* UTF-8 with the complete Unicode character set.
|
* UTF-8 with the complete Unicode character set.
|
||||||
@ -201,10 +201,6 @@ public class ValueUtf8Coding {
|
|||||||
mf.write(out);
|
mf.write(out);
|
||||||
byte[] mfBytes = out.toByteArray();
|
byte[] mfBytes = out.toByteArray();
|
||||||
|
|
||||||
System.out.println("-".repeat(72));
|
|
||||||
System.out.print(new String(mfBytes, UTF_8));
|
|
||||||
System.out.println("-".repeat(72));
|
|
||||||
|
|
||||||
ByteArrayInputStream in = new ByteArrayInputStream(mfBytes);
|
ByteArrayInputStream in = new ByteArrayInputStream(mfBytes);
|
||||||
return new Manifest(in);
|
return new Manifest(in);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user