[jboss-cvs] JBossAS SVN: r76967 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 12 03:46:40 EDT 2008


Author: alesj
Date: 2008-08-12 03:46:39 -0400 (Tue, 12 Aug 2008)
New Revision: 76967

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java
Log:
Some info to the exception.

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java	2008-08-12 07:03:51 UTC (rev 76966)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java	2008-08-12 07:46:39 UTC (rev 76967)
@@ -103,10 +103,10 @@
          MemoryContext ctx = registry.get(rootName);
          if (ctx == null)
          {
-            if (url.getPath() != null && url.getPath().length() > 0)
-            {
-               throw new IllegalArgumentException("Root can not contain '/'");
-            }
+            String urlPath = url.getPath();
+            if (urlPath != null && urlPath.length() > 0)
+               throw new IllegalArgumentException("Root can not contain '/' - " + urlPath);
+
             URL ctxURL = new URL("vfsmemory://" + rootName);
             ctx = new MemoryContext(ctxURL);
             registry.put(rootName, ctx);




More information about the jboss-cvs-commits mailing list