harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lian...@apache.org
Subject svn commit: r523620 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
Date Thu, 29 Mar 2007 08:31:44 GMT
Author: liangyx
Date: Thu Mar 29 01:31:43 2007
New Revision: 523620

URL: http://svn.apache.org/viewvc?view=rev&rev=523620
Log:
tests.api.java.net.URLClassLoaderTest.testFindResource_H3461() fails on Windows

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java?view=diff&rev=523620&r1=523619&r2=523620
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/URLClassLoaderTest.java
Thu Mar 29 01:31:43 2007
@@ -372,8 +372,7 @@
             dir.mkdir();
         }
         dir.deleteOnExit();
-        dirUrl = new URI("file", null, dir.getAbsolutePath() +
-                        File.separator, null).toURL();
+        dirUrl = dir.toURI().toURL();
         loader = new URLClassLoader( new URL[] { dirUrl });
 
         f = File.createTempFile("temp", ".dat", dir);
@@ -384,7 +383,7 @@
         assertNotNull("Unable to load resource from path with problematic name",
             loader.getResource(f.getName()));
         assertEquals("URL was not correctly encoded",
-            new URI("file", null, f2.getAbsolutePath(), null).toURL(),    
+            f2.toURI().toURL(),    
             loader.getResource(f2.getName()));
     }
 



Mime
View raw message