RFR: 8288120: VerifyError with JEP 405 pattern match [v2]

Jan Lahoda jlahoda at openjdk.org
Mon Jun 20 12:00:49 UTC 2022


> When pattern matching is looking up the accessor methods, it currently uses `Scope.findFirst`. This method may find a method with the same name from the record's supertype. The proposal is to use `Resolve.resolveInternalMethod` which should lookup the methods based on the ordinary rules, and should find the accessor from the record.

Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:

  Using component's accessor, as suggested.

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

Changes:
  - all: https://git.openjdk.org/jdk19/pull/34/files
  - new: https://git.openjdk.org/jdk19/pull/34/files/0dab927a..b013dc88

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk19&pr=34&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk19&pr=34&range=00-01

  Stats: 4 lines in 1 file changed: 0 ins; 3 del; 1 mod
  Patch: https://git.openjdk.org/jdk19/pull/34.diff
  Fetch: git fetch https://git.openjdk.org/jdk19 pull/34/head:pull/34

PR: https://git.openjdk.org/jdk19/pull/34


More information about the compiler-dev mailing list