[logback-dev] svn commit: r1929 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sat Nov 1 13:58:18 CET 2008


Author: ceki
Date: Sat Nov  1 13:58:18 2008
New Revision: 1929

Modified:
   logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java

Log:
- file.toURL was deprecated in JDK 1.6

Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java	(original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/util/ContextInitializer.java	Sat Nov  1 13:58:18 2008
@@ -60,7 +60,7 @@
         File f = new File(logbackConfigFile);
         if (f.exists() && f.isFile()) {
           try {
-            result = f.toURL();
+            result = f.toURI().toURL();
             return result;
           } catch (MalformedURLException e1) {
           }


More information about the logback-dev mailing list