implementation for java.lang.reflect.RecordComponent
Chris Hegarty
chris.hegarty at oracle.com
Fri Oct 11 10:54:07 UTC 2019
> On 8 Oct 2019, at 13:50, Vicente Romero <vicente.romero at oracle.com> wrote:
>
>> ...
>> +++ b/src/java.base/share/classes/java/lang/Class.java
>> @@ -2252,10 +2252,13 @@
>> /**
>> * Returns an array containing {@code RecordComponent} objects reflecting all the
>> - * declared record components of the record represented by this {@code Class} object
>> - *
>> - * @return the array of {@code RecordComponent} objects representing all the
>> - * record components of this record
>> + * declared record components of the record represented by this {@code Class} object.
>> + * The components are returned in the same order that they are declared in the
>> + * record header.
>> + *
>> + * @return The array of {@code RecordComponent} objects representing all the
>> + * record components of this record. The array is empty if this class
>> + * is not a record, or if this class is a record with no components.
>> * @throws SecurityException
>> * If a security manager, <i>s</i>, is present and any of the
>> * following conditions is met:
>>
>> RecordRefletorTest already covers these cases. I can push this change if we agree.
> yes I agree with the change, looks good to me,
Pushed, http://hg.openjdk.java.net/amber/amber/rev/d45c1a111e21
-Chris.
More information about the amber-dev
mailing list