[jboss-cvs] JBossAS SVN: r91907 - projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 31 21:01:38 EDT 2009


Author: jason.greene at jboss.com
Date: 2009-07-31 21:01:38 -0400 (Fri, 31 Jul 2009)
New Revision: 91907

Modified:
   projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/VirtualFile.java
Log:
Make getChild conform to the javadoc and with past behavior


Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/VirtualFile.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/VirtualFile.java	2009-08-01 00:43:22 UTC (rev 91906)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/virtual/VirtualFile.java	2009-08-01 01:01:38 UTC (rev 91907)
@@ -401,7 +401,17 @@
             current = new VirtualFile(vfs, part, current);
          }
       }
-      return current;
+      try
+      {
+         if (current.exists())
+            return current;
+      }
+      catch (IOException e)
+      {
+         // Fall-through
+      }
+
+      return null;
    }
 
    /**




More information about the jboss-cvs-commits mailing list