Author: dallen6
Date: 2010-04-22 05:42:38 -0400 (Thu, 22 Apr 2010)
New Revision: 6148
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/ClassloaderClassPath.java
Log:
Put the resource paths back to the original separator
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-22
08:09:31 UTC (rev 6147)
+++
core/trunk/impl/src/main/java/org/jboss/weld/bean/proxy/util/ClassloaderClassPath.java 2010-04-22
09:42:38 UTC (rev 6148)
@@ -17,7 +17,6 @@
package org.jboss.weld.bean.proxy.util;
-import java.io.File;
import java.io.InputStream;
import java.net.URL;
@@ -47,13 +46,13 @@
public URL find(String classname)
{
- String resourceName = classname.replace('.', File.separatorChar) +
".class";
+ String resourceName = classname.replace('.', '/') +
".class";
return classLoader.getResource(resourceName);
}
public InputStream openClassfile(String classname) throws NotFoundException
{
- String resourceName = classname.replace('.', File.separatorChar) +
".class";
+ String resourceName = classname.replace('.', '/') +
".class";
return classLoader.getResourceAsStream(resourceName);
}
Show replies by date