On Thu, 21 Jan 2021 05:19:00 GMT, Brent Christian <bchri...@openjdk.org> wrote:

>> https://bugs.openjdk.java.net/browse/JDK-8183372
>
> Can this be done all in `EnclosingClassTest.java`, without a new 
> `RunEnclosingClassTest.java`?
> 
> Adding the `@BeforeClass` and `@AfterClass` methods to what's there, you may 
> just need to 
> change the `test()` calls to use reflection - something along the lines of: 
> 
>> test(`Class.forName("EnclosingClass").getDeclaredConstructor().newInstance());`

Review comments implemented.

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

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

Reply via email to