RFR: 8307814: In the case of two methods with Record Patterns, the second one contains a line number from the first method

Jan Lahoda jlahoda at openjdk.org
Mon May 22 15:20:10 UTC 2023


`TransPatterns` is not setting the position for `TreeMaker` when unrolling record patterns, leading to weird content of the `LineNumberTable`. The proposal is to set the position.

For tests, it attempts to make the tests more general/allow more strict checks on the LNT.

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

Commit messages:
 - 8307814: In the case of two methods with Record Patterns, the second one contains a line number from the first method

Changes: https://git.openjdk.org/jdk/pull/14087/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14087&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8307814
  Stats: 144 lines in 4 files changed: 121 ins; 9 del; 14 mod
  Patch: https://git.openjdk.org/jdk/pull/14087.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14087/head:pull/14087

PR: https://git.openjdk.org/jdk/pull/14087


More information about the compiler-dev mailing list