Class.getRecordComponent() javadoc doesn't specify its behavior if the accessor of a record component is not present

Remi Forax forax at univ-mlv.fr
Thu Oct 10 21:36:23 UTC 2019


Given that it's a call from the reflection API,
it should be translated to a NoSuchMethodException.

----- Mail original -----
> De: "Harold David Seigel" <harold.seigel at oracle.com>
> À: "amber-dev" <amber-dev at openjdk.java.net>
> Envoyé: Jeudi 10 Octobre 2019 21:55:26
> Objet: Re: Class.getRecordComponent() javadoc doesn't specify its behavior if the accessor of a record component is not
> present

> The VM should throw a NoSuchMethodError exception in that case?
> 
> Thanks, Harold
> 
> On 10/10/2019 3:42 PM, Vicente Romero wrote:
>> that shouldn't happen, the compiler would generate the accessor if not
>> present, I guess the VM should verify for that too
>>
>> Vicente
>>
>> On 10/10/19 2:36 PM, Remi Forax wrote:
>>> As the title says,
>>> Class.getRecordComponent() javadoc doesn't specify its behavior if
>>> the accessor of a record component is not present.
>>>
>>> regards,
>>> Rémi


More information about the amber-dev mailing list