< prev index next >

test/jdk/java/lang/invoke/lambda/LambdaAccessControlTest.java

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

*** 22,18 ***
   */
  
  /*
   * @test
   * @bug 8003881
-  * @summary tests Lambda expression with a security manager at top level
   * @modules jdk.compiler
-  * @compile -XDignore.symbol.file LambdaAccessControlTest.java LUtils.java
-  *
   * @run main/othervm -Djava.security.manager=allow LambdaAccessControlTest
   */
  
! public class LambdaAccessControlTest extends LUtils {
      public static void main(String... args) {
          System.setSecurityManager(new SecurityManager());
          JJ<Integer> iii = (new CC())::impl;
          System.out.printf(">>> %s\n", iii.foo(44));
          iii = DD::impl;
--- 22,16 ---
   */
  
  /*
   * @test
   * @bug 8003881
   * @modules jdk.compiler
   * @run main/othervm -Djava.security.manager=allow LambdaAccessControlTest
+  * @summary tests Lambda expression with a security manager at top level
   */
  
! public class LambdaAccessControlTest {
      public static void main(String... args) {
          System.setSecurityManager(new SecurityManager());
          JJ<Integer> iii = (new CC())::impl;
          System.out.printf(">>> %s\n", iii.foo(44));
          iii = DD::impl;
< prev index next >