Bug in the record pattern translation / record pattern spec
Brian Goetz
brian.goetz at oracle.com
Tue Jun 28 17:38:30 UTC 2022
>
> For the deconstruction pattern, i propose to throw a specific error
> and to not wrap the subclasses of java.lang.Error thrown by the
> deconstruction pattern.
The wrapper should not be an Error, but I see what you are getting at --
let Error through, wrap everything else. This would allow SOE and OOME
to manifest as expected -- and rely on the "well, know its a bad idea to
try and catch Error, but they are not as good about runtime
exceptions." Worth considering.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-spec-experts/attachments/20220628/d92d1127/attachment.htm>
More information about the amber-spec-experts
mailing list