[lworld] RFR: 8279901: [lworld] Javac should verify/ensure that a Functional interface implements neither IdentityObject nor ValueObject
Aggelos Biboudis
duke at openjdk.java.net
Thu Jan 13 12:18:35 UTC 2022
On Thu, 13 Jan 2022 09:52:47 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:
> Disqualify interfaces that extend either of the top interface types from being lambda target types.
LGTM 🚀
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java line 798:
> 796: }
> 797: // Not functional if extending either of the top interface types.
> 798: Type topInferface;
Small typo
-------------
Marked as reviewed by biboudis at github.com (no known OpenJDK username).
PR: https://git.openjdk.java.net/valhalla/pull/601
More information about the valhalla-dev
mailing list