RFR: 8287808: javac generates illegal class file for pattern matching switch with records

Jan Lahoda jlahoda at openjdk.java.net
Mon Jun 6 10:46:07 UTC 2022


For record patterns, javac generates proxy methods for accessors, to properly wrap exceptions. These proxies are currently generated as package private, which is not valid for interfaces. Using private methods should be better.

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

Commit messages:
 - 8287808: javac generates illegal class file for pattern matching switch with records

Changes: https://git.openjdk.java.net/jdk/pull/9039/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=9039&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8287808
  Stats: 12 lines in 4 files changed: 8 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/9039.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/9039/head:pull/9039

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


More information about the compiler-dev mailing list