Changeset 12799


Ignore:
Timestamp:
07/10/10 20:37:04 (13 years ago)
Author:
Mark Evenson
Message:

Backout partial bad merge.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Pathname.java

    r12798 r12799  
    581581        if (host != NIL) {
    582582            Debug.assertTrue(host instanceof AbstractString
    583                              || host instanceof Cons);
    584             if (host instanceof Cons) {
     583                             || isURL());
     584            if (isURL()) {
    585585                LispObject scheme = Symbol.GETF.execute(host, SCHEME, NIL);
    586586                LispObject authority = Symbol.GETF.execute(host, AUTHORITY, NIL);
     
    606606        if (device == NIL) {
    607607        } else if (device == Keyword.UNSPECIFIC) {
    608         } else if (device instanceof Cons) {
     608        } else if (isJar()) {
    609609            LispObject[] jars = ((Cons) device).copyToArray();
    610610            StringBuilder prefix = new StringBuilder();
     
    618618            }
    619619            sb = prefix.append(sb);
    620         } else if (device instanceof AbstractString
    621           && device.getStringValue().startsWith("jar:")) {
    622             sb.append(device.getStringValue());
    623620        } else if (device instanceof AbstractString) {
    624621            sb.append(device.getStringValue());
     
    698695        }
    699696        namestring = sb.toString();
    700         // XXX Decide when this is necessary
     697        // XXX Decide if this is necessary
    701698        // if (isURL()) {
    702699        //     namestring = Utilities.uriEncode(namestring);
     
    12621259                host = defaults.host;
    12631260            }
    1264             if (directory == NIL && defaults != null) {
     1261            if (directory == NIL) {
    12651262                directory = defaults.directory;
    12661263            }
     
    20572054                result = new URL(pathname.getNamestring());
    20582055            } else {
    2059                 // XXX ensure that we have cannonical path.
     2056                // XXX Properly encode Windows drive letters and UNC paths
     2057                // XXX ensure that we have cannonical path?
    20602058                result = new URL("file://" + pathname.getNamestring());
    20612059            }
Note: See TracChangeset for help on using the changeset viewer.