Integrated: 8200145: Conditional expression mistakenly treated as standalone

Guoxiong Li gli at openjdk.java.net
Wed Apr 21 14:39:35 UTC 2021


On Sat, 30 Jan 2021 08:50:53 GMT, Guoxiong Li <gli at openjdk.org> wrote:

> Hi all,
> 
> If the argument `Type t` of the method `Types.unboxedType` is an `ErrorType`, the `Types.unboxedType` may return the wrong result. And in this case, `Attr.isBooleanOrNumeric` and `Attr.isBooleanOrNumeric` return the wrong result, too.
> 
> This patch fixes it and adds a test case.
> Thank you for taking the time to review.
> 
> Best Regards.
> -- xiong

This pull request has now been integrated.

Changeset: 07a7510d
Author:    Guoxiong Li <gli at openjdk.org>
Committer: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/07a7510d
Stats:     46 lines in 3 files changed: 45 ins; 0 del; 1 mod

8200145: Conditional expression mistakenly treated as standalone

Reviewed-by: mcimadamore

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

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


More information about the compiler-dev mailing list