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 2012/04/25 09:57:59 UTC

[jira] [Updated] (DERBY-5716) TimestampArithTest keeps references to statements after completion

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

Knut Anders Hatlen updated DERBY-5716:
--------------------------------------

    Attachment: d5716-1a.diff

Attaching a patch that makes two changes to the test:

1) It adds a tearDown() method that closes the statements and clears the references to them.

2) This is a data-driven test. However, the test inputs are stored in non-static variables, so they are duplicated in memory as many times as there are test cases. The patch makes the variables that hold the test input static to reduce the memory footprint of the test.
                
> TimestampArithTest keeps references to statements after completion
> ------------------------------------------------------------------
>
>                 Key: DERBY-5716
>                 URL: https://issues.apache.org/jira/browse/DERBY-5716
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5716-1a.diff
>
>
> TimestampArithTest keeps references to statements in static fields, but never closes them or clears the fields.

--
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