RFR: 8257241: CDS should not handle disableEagerInitialization for archived lambda proxy classes [v2]
    Ioi Lam 
    iklam at openjdk.java.net
       
    Tue Dec  1 22:50:00 UTC 2020
    
    
  
On Tue, 1 Dec 2020 22:34:58 GMT, Calvin Cheung <ccheung at 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
    
    
More information about the core-libs-dev
mailing list