You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/01/22 13:41:21 UTC

[jira] Created: (POOL-156) ObjectPool classes can ignore Throwable

ObjectPool classes can ignore Throwable
---------------------------------------

                 Key: POOL-156
                 URL: https://issues.apache.org/jira/browse/POOL-156
             Project: Commons Pool
          Issue Type: Bug
            Reporter: Sebb


The ObjectPool classes catch and ignore Throwable in several places.

Catching Throwable should be done rarely, if ever, and should never ignore ThreadDeath.
Indeed, ignoring Error is not normally advisable.

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


[jira] Updated: (POOL-156) ObjectPool classes can ignore Throwable

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

Phil Steitz updated POOL-156:
-----------------------------

        Fix Version/s: 1.5.5
    Affects Version/s: 1.5.4
                       1.5.3
                       1.5.2
                       1.5.1
                       1.5
                       1.4
                       1.3
                       1.2
                       1.1
                       1.0.1
                       1.0

> ObjectPool classes can ignore Throwable
> ---------------------------------------
>
>                 Key: POOL-156
>                 URL: https://issues.apache.org/jira/browse/POOL-156
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
>            Reporter: Sebb
>             Fix For: 1.5.5
>
>
> The ObjectPool classes catch and ignore Throwable in several places.
> Catching Throwable should be done rarely, if ever, and should never ignore ThreadDeath.
> Indeed, ignoring Error is not normally advisable.

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

        

[jira] Commented: (POOL-156) ObjectPool classes can ignore Throwable

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855584#action_12855584 ] 

Sebb commented on POOL-156:
---------------------------

I think this was fixed by:

URL: http://svn.apache.org/viewvc?rev=925180&view=rev
Log:
Fix and expand failing OOME test case
Add consistent handling for Throwables that are normally swallowed including always re-throwing certain Throwables

Changed paths:
   M /commons/proper/pool/trunk/src/java/org/apache/commons/pool/PoolUtils.java
   M /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
   M /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
   M /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/SoftReferenceObjectPool.java
   M /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
   M /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackObjectPool.java
   M /commons/proper/pool/trunk/src/test/org/apache/commons/pool/impl/TestSoftRefOutOfMemory.java

> ObjectPool classes can ignore Throwable
> ---------------------------------------
>
>                 Key: POOL-156
>                 URL: https://issues.apache.org/jira/browse/POOL-156
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
>            Reporter: Sebb
>             Fix For: 1.5.5
>
>
> The ObjectPool classes catch and ignore Throwable in several places.
> Catching Throwable should be done rarely, if ever, and should never ignore ThreadDeath.
> Indeed, ignoring Error is not normally advisable.

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

        

[jira] Resolved: (POOL-156) ObjectPool classes can ignore Throwable

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

Phil Steitz resolved POOL-156.
------------------------------

    Resolution: Fixed

> ObjectPool classes can ignore Throwable
> ---------------------------------------
>
>                 Key: POOL-156
>                 URL: https://issues.apache.org/jira/browse/POOL-156
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
>            Reporter: Sebb
>             Fix For: 1.5.5
>
>
> The ObjectPool classes catch and ignore Throwable in several places.
> Catching Throwable should be done rarely, if ever, and should never ignore ThreadDeath.
> Indeed, ignoring Error is not normally advisable.

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

        

[jira] Commented: (POOL-156) ObjectPool classes can ignore Throwable

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855572#action_12855572 ] 

Phil Steitz commented on POOL-156:
----------------------------------

I think this has been partially addressed, but I do not see the commit diffs or comments here.  

> ObjectPool classes can ignore Throwable
> ---------------------------------------
>
>                 Key: POOL-156
>                 URL: https://issues.apache.org/jira/browse/POOL-156
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
>            Reporter: Sebb
>             Fix For: 1.5.5
>
>
> The ObjectPool classes catch and ignore Throwable in several places.
> Catching Throwable should be done rarely, if ever, and should never ignore ThreadDeath.
> Indeed, ignoring Error is not normally advisable.

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