On 12/3/2019 8:49 AM, Dan Smith wrote:
So,

Fine: "isRecord returns true if the class extends java.lang.Record
and has a Record attribute." (a little more detailed than most
reflection methods, but that's probably good)

Overkill: "isRecord returns true if the class extends
java.lang.Record and has a Record attribute that conforms to the
following rules ..."

Yes. "has a Record attribute" is the most that the broadly-read API spec should admit about the class file. Even "has a *well-formed* Record attribute" would be too much, since it quickly devolves into your overkill scenario.

Alex

Reply via email to