On Tue, 1 Dec 2020 22:34:58 GMT, Calvin Cheung <cche...@openjdk.org> wrote:
>> test/hotspot/jtreg/runtime/cds/appcds/LambdaEagerInit.java line 36: >> >>> 34: * @requires vm.cds >>> 35: * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds >>> 36: * @compile >>> ../../../../../jdk/java/lang/invoke/lambda/LambdaEagerInitTest.java >> >> I think it's better to make a copy of this test along side with this test. > > 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(); ------------- PR: https://git.openjdk.java.net/jdk/pull/1542