RFR: 8258535: jvm.ClassReader should set the accessor to the corresponding record component

Vicente Romero vromero at openjdk.java.net
Sat May 22 05:49:18 UTC 2021


Please review this fix which addresses a bug in the records implementation. The issue is that when a record is read by jvm.ClassReader, the record components are not linked to its corresponding accessor. If users try to look for the accessor using javax.lang.model API, using an annotation processor for example, then they will find that the accessor is null.

TIA for the review

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

Commit messages:
 - 8258535: TypeElement#getRecordComponents no components for records from a different jar

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

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


More information about the compiler-dev mailing list