RFR: 8273584: TypeElement.getSuperclass crashes for a record TypeElement when j.l.Record is not available

Jan Lahoda jlahoda at openjdk.java.net
Fri Sep 10 15:09:10 UTC 2021


After JDK-8273263, calling TypeElement.getSuperclass may fail on a record when j.l.Record is not available, because the method will try to synthesize the type based on treee, but the tree is not filled. The proposal is to fill in the tree.

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

Commit messages:
 - 8273584: TypeElement.getSuperclass crashes for a record TypeElement when j.l.Record is not available

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

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


More information about the compiler-dev mailing list