git: openjdk/jdk: 8295020: javac emits incorrect code for for-each on an intersection type.

Srikanth Adayapalam sadayapalam at openjdk.org
Mon Oct 17 07:42:45 UTC 2022


Changeset: cf07eaeb
Author:    Srikanth Adayapalam <sadayapalam at openjdk.org>
Date:      2022-10-17 07:40:19 +0000
URL:       https://git.openjdk.org/jdk/commit/cf07eaeb9291da725181832b8bb1dc54957ba886

8295020: javac emits incorrect code for for-each on an intersection type.

Reviewed-by: mcimadamore

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java
+ test/langtools/tools/javac/foreach/CovariantIntersectIterator.java



More information about the jdk-changes mailing list