Revert this patch whilst I figure out why it breaks class loading.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Oct 2008 11:47:46 +0000 (11:47 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Oct 2008 11:47:46 +0000 (11:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@701091 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/naming/resources/FileDirContext.java

index 743417d..58e54e4 100644 (file)
@@ -896,9 +896,7 @@ public class FileDirContext extends BaseDirContext {
 
         for (int i = 0; i < names.length; i++) {
 
-            File currentFile = file(file.getName() + "/" + names[i]);
-            if (currentFile == null) continue;
-
+            File currentFile = new File(file, names[i]);
             Object object = null;
             if (currentFile.isDirectory()) {
                 FileDirContext tempContext = new FileDirContext(env);