LOGGING-127: Fix issue introduced in LOGGING-126 - use setUseCache, not setDefaultUseCache
Thanks to Christopher Sahnwaldt for the report. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@697387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1427,7 +1427,7 @@ public abstract class LogFactory {
|
|||||||
// default behaviour of java is to cache file handles, and
|
// default behaviour of java is to cache file handles, and
|
||||||
// this "locks" files, preventing hot-redeploy on windows.
|
// this "locks" files, preventing hot-redeploy on windows.
|
||||||
URLConnection connection = url.openConnection();
|
URLConnection connection = url.openConnection();
|
||||||
connection.setDefaultUseCaches(false);
|
connection.setUseCaches(false);
|
||||||
stream = connection.getInputStream();
|
stream = connection.getInputStream();
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
|
|||||||
Reference in New Issue
Block a user