RFR: 7903852: apidiff: IllegalArgumentException for RECORD_COMPONENT

Jonathan Gibbons jjg at openjdk.org
Tue Oct 1 18:28:50 UTC 2024


On Tue, 1 Oct 2024 17:36:46 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> Please review a small fix for an IllegalArgumentException.
> 
> The exception is "correct"; the error is at the call site which should not be calling the method that throws the exception.
> Record components, like type parameters, do not have distinct A:PI descriptions that can be compared.
> 
> Separately, we need better back-end tests for `HtmlReporter`.

Yes.
Record components are like type parameters in that neither have standalone doc comments, and so neither have corresponding generated API descriptions either.  I wanted to add comments to draw out that similarity.

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

PR Comment: https://git.openjdk.org/apidiff/pull/20#issuecomment-2386684958


More information about the apidiff-dev mailing list