src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java
changeset 54846 e4049522b074
parent 54762 64d9a4d582bc
child 55390 4a3c13548b9e
child 58678 9cf78a70fa4f
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java	Sun Apr 07 09:13:17 2019 +0200
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java	Tue May 14 11:28:44 2019 -0400
@@ -1963,6 +1963,13 @@
             return (flags() & LAMBDA_METHOD) == LAMBDA_METHOD;
         }
 
+        /** override this method to point to the original enclosing method if this method symbol represents a synthetic
+         *  lambda method
+         */
+        public MethodSymbol originalEnclosingMethod() {
+            return this;
+        }
+
         /** The implementation of this (abstract) symbol in class origin;
          *  null if none exists. Synthetic methods are not considered
          *  as possible implementations.