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 (Created) (JIRA)" <ji...@apache.org> on 2011/12/15 13:22:30 UTC

[jira] [Created] (DERBY-5540) Call initCause() and getCause() without reflection in BaseJDBCTestCase

Call initCause() and getCause() without reflection in BaseJDBCTestCase
----------------------------------------------------------------------

                 Key: DERBY-5540
                 URL: https://issues.apache.org/jira/browse/DERBY-5540
             Project: Derby
          Issue Type: Improvement
          Components: Test
    Affects Versions: 10.9.0.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen
            Priority: Trivial


BaseJDBCTestCase uses reflection to call Throwable.initCause() and Throwable.getCause(). This was needed when running the tests on Java 1.3 and on Foundation Profile 1.0, but those platforms aren't supported any more. Now we should call the methods directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5540) Call initCause() and getCause() without reflection in BaseJDBCTestCase

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5540:
--------------------------------------

    Issue & fix info: Patch Available
    
> Call initCause() and getCause() without reflection in BaseJDBCTestCase
> ----------------------------------------------------------------------
>
>                 Key: DERBY-5540
>                 URL: https://issues.apache.org/jira/browse/DERBY-5540
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>         Attachments: d5540.diff
>
>
> BaseJDBCTestCase uses reflection to call Throwable.initCause() and Throwable.getCause(). This was needed when running the tests on Java 1.3 and on Foundation Profile 1.0, but those platforms aren't supported any more. Now we should call the methods directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5540) Call initCause() and getCause() without reflection in BaseJDBCTestCase

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5540:
--------------------------------------

    Attachment: d5540.diff

The attached patch makes BaseJDBCTestCase call initCause() and getCause() directly. All the regression tests passed.
                
> Call initCause() and getCause() without reflection in BaseJDBCTestCase
> ----------------------------------------------------------------------
>
>                 Key: DERBY-5540
>                 URL: https://issues.apache.org/jira/browse/DERBY-5540
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>         Attachments: d5540.diff
>
>
> BaseJDBCTestCase uses reflection to call Throwable.initCause() and Throwable.getCause(). This was needed when running the tests on Java 1.3 and on Foundation Profile 1.0, but those platforms aren't supported any more. Now we should call the methods directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5540) Call initCause() and getCause() without reflection in BaseJDBCTestCase

Posted by "Dag H. Wanvik (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170575#comment-13170575 ] 

Dag H. Wanvik commented on DERBY-5540:
--------------------------------------

Good cleanup. +1

                
> Call initCause() and getCause() without reflection in BaseJDBCTestCase
> ----------------------------------------------------------------------
>
>                 Key: DERBY-5540
>                 URL: https://issues.apache.org/jira/browse/DERBY-5540
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>         Attachments: d5540.diff
>
>
> BaseJDBCTestCase uses reflection to call Throwable.initCause() and Throwable.getCause(). This was needed when running the tests on Java 1.3 and on Foundation Profile 1.0, but those platforms aren't supported any more. Now we should call the methods directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DERBY-5540) Call initCause() and getCause() without reflection in BaseJDBCTestCase

Posted by "Knut Anders Hatlen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5540.
---------------------------------------

          Resolution: Fixed
       Fix Version/s: 10.9.0.0
    Issue & fix info:   (was: Patch Available)

Thanks, Dag! Committed revision 1220669.
                
> Call initCause() and getCause() without reflection in BaseJDBCTestCase
> ----------------------------------------------------------------------
>
>                 Key: DERBY-5540
>                 URL: https://issues.apache.org/jira/browse/DERBY-5540
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>             Fix For: 10.9.0.0
>
>         Attachments: d5540.diff
>
>
> BaseJDBCTestCase uses reflection to call Throwable.initCause() and Throwable.getCause(). This was needed when running the tests on Java 1.3 and on Foundation Profile 1.0, but those platforms aren't supported any more. Now we should call the methods directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira