RFR: 8266460: java.io tests fail on null stream with upgraded jtreg/TestNG

Brian Burkhalter bpb at openjdk.java.net
Tue May 4 22:38:59 UTC 2021


On Tue, 4 May 2021 20:45:43 GMT, Lance Andersen <lancea at openjdk.org> wrote:

> Hi all,
> 
> This fix addresses a change in TestNG behavior for the Before/AfterGroups annotations that was introduced  via  https://github.com/cbeust/testng/pull/2167.   The tests have been verified against the latest TestNG release and continue to run with the current TestNG release used by jtreg

test/jdk/java/io/InputStream/NullInputStream.java line 33:

> 31: import java.io.InputStream;
> 32: 
> 33: import static org.testng.Assert.*;

Would it not be more standard to put the new imports just after this import? Same comment applies in the other files.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3866


More information about the core-libs-dev mailing list