[patterns-record-deconstruction3] RFR: Fix parse error with nested record classes and empty record component list [v2]

Aggelos Biboudis duke at openjdk.java.net
Mon May 2 13:55:39 UTC 2022


> This PR addresses the following parse error.
> 
> The following snippet of code:
> 
> 
>     interface W {
>         record X1() implements W {}
>     }
> 
>     public int test(W w) {
>         return switch (w) {
>             case W.X1() -> 1;
>         };
>     }
> 
> 
> reports that it cannot find symbol.
> 
> 
> error: cannot find symbol
>             case W.X1() -> 1;
>                   ^
>   symbol:   method X1()
>   location: interface W

Aggelos Biboudis has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase.

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

Changes:
  - all: https://git.openjdk.java.net/amber/pull/83/files
  - new: https://git.openjdk.java.net/amber/pull/83/files/266120ab..7d1f2373

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

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

PR: https://git.openjdk.java.net/amber/pull/83


More information about the amber-dev mailing list