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

Vicente Romero vromero at openjdk.java.net
Mon May 24 14:54:13 UTC 2021


On Sat, 22 May 2021 05:40:46 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: f5562f12
Author:    Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/f5562f1214478439899b803f80247d2347a00dab
Stats:     223 lines in 2 files changed: 222 ins; 0 del; 1 mod

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

Reviewed-by: jfranck

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

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


More information about the compiler-dev mailing list