New protocol for disabling exception suppression

David Holmes David.Holmes at
Tue Apr 5 03:27:22 PDT 2011

Bruce Chapman said the following on 04/05/11 20:00:
> On 5/04/2011 2:41 p.m., joe.darcy at wrote:
>> I could see an argument for adding analogous protected constructors to
>> java.lang.{Exception, RuntimeException, Error} to allow non-platform
> Without analogous constructors I don't think it will be possible to make 
> a checked exception with suppressed disabled.

Well Throwable is a checked exception.  Without analogous constructors 
users won't be able to make instances of any existing exception types 
(checked or unchecked) with suppression disabled, but ...

> So long as users can make their own checked and unchecked exceptions 
> with suppression disabled that should be enough.

... the intent was never to provide users with such a facility, but 
simply to ensure that the actions of the VM were allowed under the 


> Bruce
>> exceptions to control this behavior.  However, just as not all exception
>> types have a full complement of the existing four Throwable
>> constructors, very, very few exceptions types need a constructor that
>> allows suppression to be disabled.  In particular, there are no plans to
>> go through and retrofit a bunch of these constructors into the majority
>> of the exception types defined in the platform.
>> -Joe

More information about the coin-dev mailing list