Revision: 20390
          http://sourceforge.net/p/jmol/code/20390
Author:   hansonr
Date:     2015-03-19 12:36:55 +0000 (Thu, 19 Mar 2015)
Log Message:
-----------
support for multiple java.net.URL constructors

Modified Paths:
--------------
    trunk/Jmol/srcjs/java/net/URL.java

Modified: trunk/Jmol/srcjs/java/net/URL.java
===================================================================
--- trunk/Jmol/srcjs/java/net/URL.java  2015-03-19 12:09:02 UTC (rev 20389)
+++ trunk/Jmol/srcjs/java/net/URL.java  2015-03-19 12:36:55 UTC (rev 20390)
@@ -503,6 +503,14 @@
     public URL(URL context, String spec, URLStreamHandler handler)
         throws MalformedURLException
     {
+//    public URL(String spec) 
+//    public URL(URL context, String spec) 
+//    public URL(URL context, String spec, URLStreamHandler handler)
+// 
+//    public URL(String protocol, String host, String file)
+//    public URL(String protocol, String host, int port, String file)
+//    public URL(String protocol, String host, int port, String file, 
URLStreamHandler handler)
+
       /**
        * key is that we want to have only one constructor 
        *
@@ -516,6 +524,7 @@
        *   handler = null;
        *   break;
        * case 3:
+       * if (context == null || context && context.getValue() == null || 
Clazz.instanceOf(context, java.net.URL))
        *   break;
        * default:
        *   alert("java.net.URL constructor format not supported");
@@ -533,13 +542,13 @@
         boolean aRef=false;
         boolean isRelative = false;
 
-        // Check for permission to specify a handler
-        if (handler != null) {
-            SecurityManager sm = System.getSecurityManager();
-            if (sm != null) {
-                checkSpecifyHandler(sm);
-            }
-        }
+//        // Check for permission to specify a handler
+//        if (handler != null) {
+//            SecurityManager sm = System.getSecurityManager();
+//            if (sm != null) {
+//                checkSpecifyHandler(sm);
+//            }
+//        }
 
         try {
             limit = spec.length();

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to