--- 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.