[weld-commits] Weld SVN: r6136 - core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Wed Apr 21 07:27:33 EDT 2010


Author: dallen6
Date: 2010-04-21 07:27:33 -0400 (Wed, 21 Apr 2010)
New Revision: 6136

Modified:
   core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/ClassloaderClassPath.java
Log:
Fixed class file paths to work on all platforms

Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/ClassloaderClassPath.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/ClassloaderClassPath.java	2010-04-21 10:29:59 UTC (rev 6135)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/ClassloaderClassPath.java	2010-04-21 11:27:33 UTC (rev 6136)
@@ -17,6 +17,7 @@
 
 package org.jboss.weld.bean.proxy.util;
 
+import java.io.File;
 import java.io.InputStream;
 import java.net.URL;
 
@@ -46,13 +47,13 @@
 
    public URL find(String classname)
    {
-      String resourceName = classname.replace('.', '/') + ".class";
+      String resourceName = classname.replace('.', File.separatorChar) + ".class";
       return classLoader.getResource(resourceName);
    }
 
    public InputStream openClassfile(String classname) throws NotFoundException
    {
-      String resourceName = classname.replace('.', '/') + ".class";
+      String resourceName = classname.replace('.', File.separatorChar) + ".class";
       return classLoader.getResourceAsStream(resourceName);
    }
 



More information about the weld-commits mailing list