RFR: JDK-8236544: Confusing javac message: return type of accessor method abc() is not compatible with type of record component number
Vicente Romero
vicente.romero at oracle.com
Thu Jan 2 19:42:27 UTC 2020
Hi,
Please review this very simple change to an error message related to
records. The patch makes the error message more specific as the spec
doesn't allow an accessor method to declare a return type other than the
same declared by the corresponding record component. The current error
message is referring to compatibility between types instead of exact
match which is what the spec allows,
Thanks,
Vicente
http://cr.openjdk.java.net/~vromero/8236544/webrev.00/
https://bugs.openjdk.java.net/browse/JDK-8236544
More information about the compiler-dev
mailing list