RFR: 8200145: Conditional expression mistakenly treated as standalone [v2]

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Sat Apr 17 07:27:55 UTC 2021


> 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

Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:

  Use method isErroneous

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2324/files
  - new: https://git.openjdk.java.net/jdk/pull/2324/files/bf5e88f1..2fe7665d

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2324&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2324&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2324.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2324/head:pull/2324

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


More information about the compiler-dev mailing list