axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <>
Subject [jira] Resolved: (AXIS-2310) Incorrect catching of java.lang.Error subclasses
Date Thu, 23 Mar 2006 19:50:18 GMT
     [ ]
Jarek Gawor resolved AXIS-2310:

    Fix Version: current (nightly)
     Resolution: Fixed

Fix committed to trunk.

> Incorrect catching of java.lang.Error subclasses
> ------------------------------------------------
>          Key: AXIS-2310
>          URL:
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Any/all
>     Reporter: J Ross Nicoll
>      Fix For: current (nightly)

> Axis catches java.lang.Throwable in several places, which is the superclass of Error.
This means that errors such as OutOfMemoryError and ThreadDeath are caught. According to the
Java virtual machine:
> "The class Error and its subclasses are exceptions from which ordinary programs are not
ordinarily expected to recover."
> In specific, src/org/apache/axis/wsdl/toJava/ line 406:
>         pw.println("        catch (java.lang.Throwable _t) {");
> should be:
>         pw.println("        catch (java.lang.Exception _e) {");
> so that ThreadDeath is not caught, as catching it means that threads never exit properly
> However, there are likely to be other points where this is an issue, that I haven't found
yet, and checking the code would probably be a good idea...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message