geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r784990 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
Date Mon, 15 Jun 2009 21:26:02 GMT
Author: dblevins
Date: Mon Jun 15 21:26:02 2009
New Revision: 784990

URL: http://svn.apache.org/viewvc?rev=784990&view=rev
Log:
Fixed XBEAN-126: ClassFinder throwing "Could not load exceptions" on "classes" whose path
includes a '.'

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

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java?rev=784990&r1=784989&r2=784990&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
Mon Jun 15 21:26:02 2009
@@ -428,6 +428,7 @@
             } else if (file.getName().endsWith(".class")) {
                 String name = file.getName();
                 name = name.replaceFirst(".class$", "");
+                if (name.contains(".")) continue;
                 classNames.add(packageName + name);
             }
         }
@@ -458,6 +459,7 @@
             }
             String className = entry.getName();
             className = className.replaceFirst(".class$", "");
+            if (className.contains(".")) continue;
             className = className.replace('/', '.');
             classNames.add(className);
         }



Mime
View raw message