On Tue, 1 Dec 2020 22:47:18 GMT, Ioi Lam <ik...@openjdk.org> wrote: >> I can make a copy and put it under the >> `open/test/hotspot/jtreg/runtime/cds/appcds/test-classes` dir. I'd still >> need the `@compile` and would be something like `@compile >> test-classes/LambdaEagerInitTest.java`. > > The `@compile` can be avoiding by putting LambdaEagerInitTest into the > `@library` and referencing it as > > private static final String mainClass = LambdaEagerInitTest.class.getName();
Yes, `@library test-classes` works. ------------- PR: https://git.openjdk.java.net/jdk/pull/1542