Revision: 20389 http://sourceforge.net/p/jmol/code/20389 Author: hansonr Date: 2015-03-19 12:09:02 +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-16 19:59:50 UTC (rev 20388) +++ trunk/Jmol/srcjs/java/net/URL.java 2015-03-19 12:09:02 UTC (rev 20389) @@ -504,15 +504,28 @@ throws MalformedURLException { /** + * key is that we want to have only one constructor + * * @j2sNative * - * if (arguments.length == 1) { + * switch (arguments.length) { + * case 1: * spec = context;context = handler = null; + * break; + * case 2: + * handler = null; + * break; + * case 3: + * break; + * default: + * alert("java.net.URL constructor format not supported"); + * break; * } * if (context && context.getValue() == null) * context = null; * */ + {} String original = spec; int i, limit, c; int start = 0; 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