Changeset 12780
- Timestamp:
- 07/04/10 06:43:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Pathname.java
r12773 r12780 607 607 if (host != NIL) { 608 608 Debug.assertTrue(host instanceof AbstractString 609 || host instanceof Cons);610 if ( host instanceof Cons) {609 || isURL()); 610 if (isURL()) { 611 611 LispObject scheme = Symbol.GETF.execute(host, SCHEME, NIL); 612 612 LispObject authority = Symbol.GETF.execute(host, AUTHORITY, NIL); … … 632 632 if (device == NIL) { 633 633 } else if (device == Keyword.UNSPECIFIC) { 634 } else if ( device instanceof Cons) {634 } else if (isJar()) { 635 635 LispObject[] jars = ((Cons) device).copyToArray(); 636 636 StringBuilder prefix = new StringBuilder(); … … 644 644 } 645 645 sb = prefix.append(sb); 646 } else if (device instanceof AbstractString647 && device.getStringValue().startsWith("jar:")) {648 sb.append(device.getStringValue());649 646 } else if (device instanceof AbstractString) { 650 647 sb.append(device.getStringValue()); … … 724 721 } 725 722 namestring = sb.toString(); 726 // XXX Decide whenthis is necessary723 // XXX Decide if this is necessary 727 724 // if (isURL()) { 728 725 // namestring = Utilities.uriEncode(namestring); … … 1237 1234 } catch (IOException e) { 1238 1235 Debug.trace("Failed to make a Pathname from " 1239 + " ." + file + "'");1236 + "'" + file + "'"); 1240 1237 return null; 1241 1238 } … … 1291 1288 host = defaults.host; 1292 1289 } 1293 if (directory == NIL && defaults != null) {1290 if (directory == NIL) { 1294 1291 directory = defaults.directory; 1295 1292 } … … 2085 2082 result = new URL(pathname.getNamestring()); 2086 2083 } else { 2087 // XXX ensure that we have cannonical path. 2084 // XXX Properly encode Windows drive letters and UNC paths 2085 // XXX ensure that we have cannonical path? 2088 2086 result = new URL("file://" + pathname.getNamestring()); 2089 2087 }
Note: See TracChangeset
for help on using the changeset viewer.