You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Christopher Sahnwaldt (JIRA)" <ji...@apache.org> on 2008/09/20 13:17:44 UTC

[jira] Created: (LOGGING-127) don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties()

don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties() 
---------------------------------------------------------------------------------

                 Key: LOGGING-127
                 URL: https://issues.apache.org/jira/browse/LOGGING-127
             Project: Commons Logging
          Issue Type: Bug
    Affects Versions: Nightly Builds, 2.0
            Reporter: Christopher Sahnwaldt


The fix for LOGGING-126 introduced a call to URLConnection.setDefaultUseCaches() in LogFactory.getProperties(). This call should be changed to URLConnection.setUseCaches(), because URLConnection.setDefaultUseCaches() sets a static variable whose value affects the whole system, while URLConnection.setUseCaches() only affects its target instance.

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


[jira] Resolved: (LOGGING-127) don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties()

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

Simon Kitching resolved LOGGING-127.
------------------------------------

       Resolution: Fixed
    Fix Version/s: Nightly Builds

Fix committed. Thanks for pointing that out!

By the way: what a wierd API - a non-static method that controls a static flag. 

> don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties() 
> ---------------------------------------------------------------------------------
>
>                 Key: LOGGING-127
>                 URL: https://issues.apache.org/jira/browse/LOGGING-127
>             Project: Commons Logging
>          Issue Type: Bug
>    Affects Versions: Nightly Builds, 2.0
>            Reporter: Christopher Sahnwaldt
>             Fix For: Nightly Builds
>
>
> The fix for LOGGING-126 introduced a call to URLConnection.setDefaultUseCaches() in LogFactory.getProperties(). This call should be changed to URLConnection.setUseCaches(), because URLConnection.setDefaultUseCaches() sets a static variable whose value affects the whole system, while URLConnection.setUseCaches() only affects its target instance.

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


[jira] Updated: (LOGGING-127) don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties()

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

Dennis Lundberg updated LOGGING-127:
------------------------------------

    Fix Version/s:     (was: Nightly Builds)
                   1.1.2

> don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties() 
> ---------------------------------------------------------------------------------
>
>                 Key: LOGGING-127
>                 URL: https://issues.apache.org/jira/browse/LOGGING-127
>             Project: Commons Logging
>          Issue Type: Bug
>    Affects Versions: Nightly Builds, 2.0
>            Reporter: Christopher Sahnwaldt
>            Assignee: Simon Kitching
>             Fix For: 1.1.2
>
>
> The fix for LOGGING-126 introduced a call to URLConnection.setDefaultUseCaches() in LogFactory.getProperties(). This call should be changed to URLConnection.setUseCaches(), because URLConnection.setDefaultUseCaches() sets a static variable whose value affects the whole system, while URLConnection.setUseCaches() only affects its target instance.

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


[jira] Closed: (LOGGING-127) don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties()

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

Dennis Lundberg closed LOGGING-127.
-----------------------------------

    Assignee: Simon Kitching

> don't use setDefaultUseCaches() but setUseCaches() in LogFactory.getProperties() 
> ---------------------------------------------------------------------------------
>
>                 Key: LOGGING-127
>                 URL: https://issues.apache.org/jira/browse/LOGGING-127
>             Project: Commons Logging
>          Issue Type: Bug
>    Affects Versions: Nightly Builds, 2.0
>            Reporter: Christopher Sahnwaldt
>            Assignee: Simon Kitching
>             Fix For: 1.1.2
>
>
> The fix for LOGGING-126 introduced a call to URLConnection.setDefaultUseCaches() in LogFactory.getProperties(). This call should be changed to URLConnection.setUseCaches(), because URLConnection.setDefaultUseCaches() sets a static variable whose value affects the whole system, while URLConnection.setUseCaches() only affects its target instance.

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