You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2009/01/08 21:50:59 UTC

[jira] Updated: (DERBY-4010) PassThroughException should not reimplement initCause()/getCause()

     [ https://issues.apache.org/jira/browse/DERBY-4010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-4010:
--------------------------------------

    Attachment: derby-4010.diff

The attached patch simplifies PassThroughException so that it just contains a constructor that passes the wrapped exception to the super constructor. Also added javadoc comments.

I haven't run any tests yet. (According to the test coverage reports, this code isn't actually exercised by any of our tests, so I don't expect that they will fail. I don't know any simple way to get it tested either.)

> PassThroughException should not reimplement initCause()/getCause()
> ------------------------------------------------------------------
>
>                 Key: DERBY-4010
>                 URL: https://issues.apache.org/jira/browse/DERBY-4010
>             Project: Derby
>          Issue Type: Improvement
>    Affects Versions: 10.5.0.0
>            Reporter: Knut Anders Hatlen
>            Priority: Trivial
>         Attachments: derby-4010.diff
>
>
> org.apache.derby.iapi.error.PassThroughException has its own mechanism to achieve the same functionality as one gets from the initCause() and getCause() methods in java.lang.Throwable. This was needed when Derby supported Java 1.3, which didn't have initCause()/getCause(), but now that we don't support Java 1.3 we could simplify the class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.