[jdk16] Integrated: 8258662: JDK 17ea: Crash compiling instanceof check involving sealed interface

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Mon Dec 28 15:35:01 UTC 2020


On Wed, 23 Dec 2020 05:10:59 GMT, Guoxiong Li <github.com+13688759+lgxbslgx at openjdk.org> wrote:

> Hi all,
> 
> The method `Types.isCastable` uses method `Types.areDisjoint` to do some check. But `Types.isCastable` doesn't check the type of the parameter before invoking method `Types.areDisjoint`. This patch adds the corresponding check and add a test case.
> 
> The original patch is in https://github.com/openjdk/jdk/pull/1849.
> 
> Thank you for taking the time to review.
> 
> Best Regards.

This pull request has now been integrated.

Changeset: 881bceb9
Author:    Guoxiong Li <lgxbslgx at gmail.com>
Committer: Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.java.net/jdk16/commit/881bceb9
Stats:     76 lines in 2 files changed: 75 ins; 0 del; 1 mod

8258662: JDK 17ea: Crash compiling instanceof check involving sealed interface

Reviewed-by: vromero

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

PR: https://git.openjdk.java.net/jdk16/pull/63


More information about the compiler-dev mailing list