[9] RFR (M): 8050052: Small cleanups in java.lang.invoke code
John Rose
john.r.rose at oracle.com
Fri Jul 18 21:53:53 UTC 2014
On Jul 18, 2014, at 1:15 PM, Remi Forax <forax at univ-mlv.fr> wrote:
> I like the way the proposed API is composable but i fear that people will still forget to first call throwIfUnchecked() most of the time.
>
> I think we should not implement a throwSuppressedIf because a suppressed exception is not a primary one thus it's a more an information when debugging than an exception a code should act upon.
>
> I'm not sure that looking recursively for a cause ( :) ) is a good idea, changing the behavior of a program because an exception buried under 10 others doesn't seem appealing to me.
> Also there is a bug hidden in your implementation of throwCauseIf, you return the value of cause.throwCauseIf instead of this.
I agree with all these points; I updated the bug.
More information about the core-libs-dev
mailing list