< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaProxyCallerIsHidden.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 57,12 ***
  
          dump(topArchiveName,
              "-Xlog:class+load,cds+dynamic,cds=debug",
              "-cp", appJar, mainClass)
              .assertNormalExit(output -> {
!                 output.shouldMatch("Skipping.LambdaHello_0x.*[$][$]Lambda.*:.Hidden.class")
!                       .shouldMatch("Skipping.LambdaHello.0x.*:.Hidden.class")
                        .shouldHaveExitValue(0);
              });
  
          run(topArchiveName,
              "-Xlog:class+load,cds+dynamic,cds",
--- 57,12 ---
  
          dump(topArchiveName,
              "-Xlog:class+load,cds+dynamic,cds=debug",
              "-cp", appJar, mainClass)
              .assertNormalExit(output -> {
!                 output.shouldMatch("Skipping.LambdaHello_0x.*[$][$]Lambda.*:.Unreferenced.hidden.class")
!                       .shouldMatch("Skipping.LambdaHello.0x.*:.Unreferenced.hidden.class")
                        .shouldHaveExitValue(0);
              });
  
          run(topArchiveName,
              "-Xlog:class+load,cds+dynamic,cds",
< prev index next >