RFR: 8260566: Pattern type X is a subtype of expression type Y message is incorrect [v2]

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Fri Jan 29 12:49:06 UTC 2021


> Hi all,
> 
> The order of the arguments is wrong when using method `Errors.InstanceofPatternNoSubtype`.
> 
> This patch fixes it and revises the corresponding tests.
> Thank you for taking the time to review.
> And it may be good to fix JDK16 as well.
> 
> Best Regards.
> -- xiong

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

  Revise error message.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2311/files
  - new: https://git.openjdk.java.net/jdk/pull/2311/files/26f93d3a..6bcda73c

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

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

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


More information about the compiler-dev mailing list