This is the mail archive of the mauve-discuss@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: StackOverflowError


Pedro Izecksohn wrote:
>>> May this list be the wrong place to discuss it, but:
> 
>> You'd have a better chance of reaching gcj developers by using the gcj
>> mailing list. Or its bugtracker.
> 
>   I forgot to ask:
> 
>   Must a conforming JVM enable applications to catch all java.lang.Error subclasses?
> 

Afaict, no. Consider VirtualMachineError or InternalError. See also the
JVM spec:

"The class Error and its standard subclasses are exceptions from which
ordinary programs are not ordinarily expected to recover. The class
Error is a separate subclass of Throwable, distinct from Exception in
the class hierarchy, in order to allow programs to use the idiom

        } catch (Exception e) {

to catch all exceptions from which recovery may be possible without
catching errors from which recovery is typically not possible. "

cheers,
dalibor topic


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]