jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Smuts (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCS-14) Threadpool manager will never create bounded queues
Date Sun, 18 Mar 2007 22:16:09 GMT

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

Aaron Smuts resolved JCS-14.
----------------------------

    Resolution: Fixed

fixed

> Threadpool manager will never create bounded queues
> ---------------------------------------------------
>
>                 Key: JCS-14
>                 URL: https://issues.apache.org/jira/browse/JCS-14
>             Project: JCS
>          Issue Type: Bug
>    Affects Versions: jcs-1.2.7.9.2
>            Reporter: Martin Bosak
>         Assigned To: Aaron Smuts
>            Priority: Minor
>
> In ThreadPoolManager.loadConfig() method, the following code to retrieve the 'useBoundary'
 property will always result in calling config.setUseBoundary() with a value of false:
> config.setUseBoundary( Boolean.getBoolean( (String) props.get( root + ".useBoundary"
) ) );
> The problem stems from Boolean.getBoolean() method always searches for the supplied parameter
as a System property (i.e., set via the -D command line parameter).  
> Also, props.get(root + ".useBoundary" ) will return the value of the property; which
in turn is used as the PROPERTY NAME to retrieve from System.properties.  This results in
searching for a system property named either "true" or "false"!!
> I think the code should read:
> config.setUseBoundary( Boolean.valueOf(props.getProperty( root + ".useBoundary" ) ) );

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


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org


Mime
View raw message