You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Daniel Lee (JIRA)" <ji...@apache.org> on 2007/06/23 01:10:28 UTC

[jira] Created: (OPENJPA-264) Not calling finalize() method of data cache plug-in when application terminates.

Not calling finalize() method of data cache plug-in when application terminates.
--------------------------------------------------------------------------------

                 Key: OPENJPA-264
                 URL: https://issues.apache.org/jira/browse/OPENJPA-264
             Project: OpenJPA
          Issue Type: Bug
          Components: datacache
    Affects Versions: 1.0.0
            Reporter: Daniel Lee


When a third party data (and query) cache is configured, the finalize() method in these classes should be called (if provided) to give the plug-ins a chance to release the resource the application has been using.

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


[jira] Resolved: (OPENJPA-264) Not calling finalize() method of data cache plug-in when application terminates.

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Linskey resolved OPENJPA-264.
-------------------------------------

    Resolution: Invalid

Works as designed

> Not calling finalize() method of data cache plug-in when application terminates.
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-264
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-264
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 1.0.0
>            Reporter: Daniel Lee
>
> When a third party data (and query) cache is configured, the finalize() method in these classes should be called (if provided) to give the plug-ins a chance to release the resource the application has been using.

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


[jira] Commented: (OPENJPA-264) Not calling finalize() method of data cache plug-in when application terminates.

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507562 ] 

Patrick Linskey commented on OPENJPA-264:
-----------------------------------------

org.apache.openjpa.datacache.DataCache extends the Closeable interface. When the EMF shuts down, Closeable.close() will be invoked on the data cache instance. You should be able to do any shutdown logic there.

finalize() will be invoked by the JVM at it's discretion.

> Not calling finalize() method of data cache plug-in when application terminates.
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-264
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-264
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 1.0.0
>            Reporter: Daniel Lee
>
> When a third party data (and query) cache is configured, the finalize() method in these classes should be called (if provided) to give the plug-ins a chance to release the resource the application has been using.

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


[jira] Commented: (OPENJPA-264) Not calling finalize() method of data cache plug-in when application terminates.

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507654 ] 

Craig Russell commented on OPENJPA-264:
---------------------------------------

The folks who designed Java now agree that finalize is a terrible idea and should never have been put into Java.

Any code that depends on finalize being called is broken.


> Not calling finalize() method of data cache plug-in when application terminates.
> --------------------------------------------------------------------------------
>
>                 Key: OPENJPA-264
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-264
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 1.0.0
>            Reporter: Daniel Lee
>
> When a third party data (and query) cache is configured, the finalize() method in these classes should be called (if provided) to give the plug-ins a chance to release the resource the application has been using.

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