RFR: 8258662: JDK 17ea: Crash compiling instanceof check involving sealed interface
Guoxiong Li
github.com+13688759+lgxbslgx at openjdk.java.net
Sat Dec 19 13:54:05 UTC 2020
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.
Thank you for taking the time to review.
Best Regards.
-------------
Commit messages:
- 8258662: JDK 17ea: Crash compiling instanceof check involving sealed interface
Changes: https://git.openjdk.java.net/jdk/pull/1849/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1849&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8258662
Stats: 77 lines in 2 files changed: 76 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/1849.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1849/head:pull/1849
PR: https://git.openjdk.java.net/jdk/pull/1849
More information about the compiler-dev
mailing list