geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1052987 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/BundleAssignableClassFinder.java
Date Mon, 27 Dec 2010 01:27:28 GMT
Author: djencks
Date: Mon Dec 27 01:27:28 2010
New Revision: 1052987

URL: http://svn.apache.org/viewvc?rev=1052987&view=rev
Log:
XBEAN-161 don't start resource lookups with '/'

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/BundleAssignableClassFinder.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/BundleAssignableClassFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/BundleAssignableClassFinder.java?rev=1052987&r1=1052986&r2=1052987&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/BundleAssignableClassFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/BundleAssignableClassFinder.java
Mon Dec 27 01:27:28 2010
@@ -169,7 +169,7 @@ public class BundleAssignableClassFinder
             return true;
         }
         //Check ancestor intefaces
-        URL url = bundle.getResource("/" + interfaceName + ".class");
+        URL url = bundle.getResource(interfaceName + ".class");
         if (url == null) {
             //TODO what should we do if we do not find the interface ?
             return false;
@@ -211,7 +211,7 @@ public class BundleAssignableClassFinder
         }
         
         //Check parent class
-        URL url = bundle.getResource("/" + superClassName + ".class");
+        URL url = bundle.getResource(superClassName + ".class");
         if (url == null) {
             //TODO what should we do if we do not find the super class ?
             return false;



Mime
View raw message