RFR: 8377656: JUnit test java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java uses private methods for BeforeAll/AfterAll
Jaikiran Pai
jpai at openjdk.org
Wed Feb 11 11:05:57 UTC 2026
On Wed, 11 Feb 2026 10:40:03 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> Can I please get a review of this test-only fix which addresses a test issue in `test/jdk/java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java`? As noted in https://bugs.openjdk.org/browse/JDK-8377656, the test uses `private` methods for `@BeforeAll`/`@AfterAll` which is discouraged by JUnit.
>
> With the recent upgrade of jtreg https://bugs.openjdk.org/browse/JDK-8376355 such warnings now intentionally cause test failures. This wasn't caught during the integration of JDK-8376355 because the CI run for JDK-8376355 was done prior to the recent changes of these `java/util/zip` tests from testng to junit in https://bugs.openjdk.org/browse/JDK-8377116.
>
> I've first reproduced this failure locally and then reran the tests under `java/util/zip` with this change and they all pass now. tier1 testing is currently in progress and I'll integrate this once that completes.
Thank you Alan and Christian for the reviews. tier1 completed successfully with this change. I'll go ahead and integrate this now.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29670#issuecomment-3883707886
More information about the core-libs-dev
mailing list