RFR: JDK-8275199: Bogus warning generated for serializable records [v2]

Jonathan Gibbons jjg at openjdk.java.net
Mon Nov 8 19:16:43 UTC 2021


On Wed, 3 Nov 2021 14:20:52 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

>> Jonathan Gibbons has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   update to show fields of serializable records in the serializable form
>
> test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java line 573:
> 
>> 571:                      */
>> 572:                     public record Point(int x, int y) implements java.io.Serializable { }""");
>> 573: 
> 
> I just noted the static files in the `examples` directory already contain a `public record SerializablePoint(int x, int y) implements Serializable { }`, but it seems the output is never checked. Not an error, just a bit of tiny bit of wasted resources.

Yeah. IIRC, the examples were specifically taken from public documentation so have a separate role.  I think the test is clearer as is.

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

PR: https://git.openjdk.java.net/jdk/pull/6071


More information about the javadoc-dev mailing list