RFR: 7903047: Make JUnit runner use the JUnit Platform Launcher [v12]
Christian Stein
cstein at openjdk.java.net
Thu Apr 28 13:48:07 UTC 2022
On Mon, 25 Apr 2022 19:32:00 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
>> src/share/classes/com/sun/javatest/regtest/agent/JUnitRunner.java line 114:
>>
>>> 112: private static void runWithJUnitPlatform(Class<?> mainClass) throws Exception {
>>> 113: // https://junit.org/junit5/docs/current/user-guide/#launcher-api-execution
>>> 114: Thread.currentThread().setContextClassLoader(mainClass.getClassLoader());
>>
>> this line, to set the context class loader, might be an issue for some core-libs tests.
>
> ... I guess it might just mean we can't use JUnit Jupiter for some of the low-level core-libs tests
Yes, either that or we find another way to make those core-libs tests and JUnit happy by agreeing upon a class loader.
-------------
PR: https://git.openjdk.java.net/jtreg/pull/78
More information about the jtreg-dev
mailing list