< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangInvokeAccess.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2015, 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.  Oracle designates this
--- 1,7 ---
  /*
!  * Copyright (c) 2015, 2021, 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.  Oracle designates this

*** 30,10 ***
--- 30,11 ---
  import java.lang.invoke.MethodHandle;
  import java.lang.invoke.MethodHandles.Lookup;
  import java.lang.invoke.MethodType;
  import java.lang.invoke.VarHandle;
  import java.lang.reflect.Constructor;
+ import java.lang.reflect.Method;
  import java.lang.reflect.Field;
  import java.nio.ByteOrder;
  import java.util.List;
  import java.util.Map;
  import java.util.stream.Stream;

*** 42,10 ***
--- 43,15 ---
      /**
       * Create a new MemberName instance. Used by {@code StackFrameInfo}.
       */
      Object newMemberName();
  
+     /**
+      * Create a new MemberName instance. Used by {@code StackFrameInfo}.
+      */
+     Object newMemberName(Method method);
+ 
      /**
       * Returns the name for the given MemberName. Used by {@code StackFrameInfo}.
       */
      String getName(Object mname);
  
< prev index next >