[jboss-cvs] JBossAS SVN: r101659 - projects/vfs/trunk/src/main/java/org/jboss/vfs.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 1 10:10:00 EST 2010


Author: johnbailey
Date: 2010-03-01 10:09:59 -0500 (Mon, 01 Mar 2010)
New Revision: 101659

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/vfs/VFS.java
Log:
[JBVFS-141] - Give warning when VFS can not register URLStreamHandlerFactory

Modified: projects/vfs/trunk/src/main/java/org/jboss/vfs/VFS.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/vfs/VFS.java	2010-03-01 14:11:24 UTC (rev 101658)
+++ projects/vfs/trunk/src/main/java/org/jboss/vfs/VFS.java	2010-03-01 15:09:59 UTC (rev 101659)
@@ -102,7 +102,9 @@
         // If this doesn't work, hopefully the existing URLStreamHandlerFactory supports updates to the 'java.protocol.handler.pkgs' property.
         try {
            URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());
-        } catch (Throwable ignored) {}
+        } catch (Throwable ignored) {
+           log.warn("VFS was unable to set the URLStreamHandlerFactory.  This will have unpredictable results");
+        }
 
         String pkgs = System.getProperty("java.protocol.handler.pkgs");
         if (pkgs == null || pkgs.trim().length() == 0) {




More information about the jboss-cvs-commits mailing list