Receiver parameter for a method of an anonymous class
Michael Ernst
mernst at cs.washington.edu
Thu Jan 18 00:05:02 UTC 2018
It is not possible to write a receiver parameter for a method of an
anonymous class.
I have filed two bugs about this:
Here is a specification/language bug to change JLS 8.4.1:
https://bugs.openjdk.java.net/browse/JDK-8195645
Here is a tools/javac bug to make javac conform to the changed JLS:
https://bugs.openjdk.java.net/browse/JDK-8195646
-Mike
More information about the compiler-dev
mailing list