RFR: JDK-8236266: change error message for the case when a class extends j.l.Record

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Dec 19 18:08:32 UTC 2019


Looks good

Maurizio

On 19/12/2019 17:59, Vicente Romero wrote:
> Please review this one liner fix to [1] at [2]. This is just a minor 
> change in an error message.Currently if a class extends class: 
> j.l.Record, javac shows the following error message:
>
> ExtendingRecordClass.java:1: error: records cannot directly extend Record
> class Test extends Record {}
> ^
>
> when Test is not a record but a class. This fix updates the error 
> message,
>
> Thanks,
> Vicente
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8236266
> [2] http://cr.openjdk.java.net/~vromero/8236266/webrev.00/
>


More information about the compiler-dev mailing list