Feedback and comments on ARM proposal - resend

Neal Gafter neal at gafter.com
Mon Mar 9 18:44:10 PDT 2009


On Mon, Mar 9, 2009 at 5:21 PM, Joseph D. Darcy <Joe.Darcy at sun.com> wrote:
> Having more mutable state in a Throwable is a bit disconcerting, but I
> suppose necessary.

To address this problem, that is neither a necessary or particularly
useful technique.  It is not useful because using this technique to
properly report or log these suppressed exceptions would be very
difficult using this API.  One would effectively have to add code to
most catch clauses in a code base - even the ones generated by this
desugaring - because any one of them may have suppressed exceptions
attached.  It is not necessary because a system API can be provided to
define how suppressed exceptions are to be handled.  Either way,
though, the problem is best solved in the context of this proposal, as
this proposal requires that the language itself do the exception
suppression.



More information about the coin-dev mailing list