db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5716) TimestampArithTest keeps references to statements after completion
Date Wed, 25 Apr 2012 07:57:59 GMT

     [ 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

        

Mime
View raw message