Using switch patterns to rewrite Arrays.deepHashCode
John Rose
john.r.rose at oracle.com
Sat Sep 11 18:48:15 UTC 2021
On Sep 11, 2021, at 11:42 AM, John Rose <john.r.rose at oracle.com<mailto:john.r.rose at oracle.com>> wrote:
Putting Object[] at the top forces a re-evaluation
when Valhalla comes, since the code will break.
P.S. I wonder if there is a compatibility move where
errors which arise from changed type relations
(int <: Object) are downgraded to warnings, at
least for a while. That would cause a dominating
`case Object[] x:` to warn not error. I think I
can hear Dan saying, “ehh, not worth the trouble.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20210911/9489ef8a/attachment-0001.htm>
More information about the amber-spec-experts
mailing list