RFR: JEP 359-Records: reflection code

Chris Hegarty chris.hegarty at oracle.com
Tue Oct 29 13:49:58 UTC 2019


> On 21 Oct 2019, at 22:10, Vicente Romero <vicente.romero at oracle.com> wrote:
> 
> ...
> [1] http://cr.openjdk.java.net/~vromero/records.review/reflection/webrev.00/


java.lang.reflect.RecordComponent

1) The `toGenericString` method is specified to include the access modifiers of the “record component, always private and final”. Well, clearly these modifiers are related to the field that backs the record component. Is this class modelling the record components ( as in the record descriptor ), or the private final fields that back those components?  If the former, then maybe the access modifiers should be dropped from the string representation.

2) I think that `RecordComponent::toString` should be added and specified ( in a similar way to that of Field or Method, without the generic type information )

-Chris.

P.S. I’m happy to push changes for the above, once there is agreement. 


More information about the amber-dev mailing list