< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/LambdaVerificationFailedDuringDump.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2020, 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, 2023, 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.

*** 39,12 ***
          JarBuilder.build("badinvokedynamic", "BadInvokeDynamic");
  
          String appJar = TestCommon.getTestJar("badinvokedynamic.jar");
  
          OutputAnalyzer out = TestCommon.dump(appJar,
!         TestCommon.list("BadInvokeDynamic",
!                         "@lambda-proxy BadInvokeDynamic run ()Ljava/lang/Runnable; ()V REF_invokeStatic BadInvokeDynamic lambda$doTest$0 ()V ()V"));
          out.shouldContain("Preload Warning: Verification failed for BadInvokeDynamic")
             .shouldContain("Skipping BadInvokeDynamic: Failed verification")
             .shouldHaveExitValue(0);
      }
  }
--- 39,13 ---
          JarBuilder.build("badinvokedynamic", "BadInvokeDynamic");
  
          String appJar = TestCommon.getTestJar("badinvokedynamic.jar");
  
          OutputAnalyzer out = TestCommon.dump(appJar,
!                 TestCommon.list("BadInvokeDynamic",
!                                 "@lambda-proxy BadInvokeDynamic run ()Ljava/lang/Runnable; ()V REF_invokeStatic BadInvokeDynamic lambda$doTest$0 ()V ()V"),
+             "-XX:-PreloadSharedClasses");
          out.shouldContain("Preload Warning: Verification failed for BadInvokeDynamic")
             .shouldContain("Skipping BadInvokeDynamic: Failed verification")
             .shouldHaveExitValue(0);
      }
  }
< prev index next >