Integrated: 8273234: extended 'for' with expression of type tvar causes the compiler to crash

Vicente Romero vromero at openjdk.java.net
Fri Sep 3 13:14:35 UTC 2021


On Thu, 2 Sep 2021 04:18:38 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> Please review this one liner patch that is fixing a crash in the compiler. Method `Attr::visitForeachLoop` is doing a lookup for method `iterator` without making sure that the `site` where the method is being looked for is not a type variable.
> 
> TIA

This pull request has now been integrated.

Changeset: 8c379092
Author:    Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/8c379092747301de70db1ef8e441cbe09fd742e7
Stats:     50 lines in 2 files changed: 49 ins; 0 del; 1 mod

8273234: extended 'for' with expression of type tvar causes the compiler to crash

Reviewed-by: jlahoda

-------------

PR: https://git.openjdk.java.net/jdk/pull/5346


More information about the compiler-dev mailing list