Changeset 12689


Ignore:
Timestamp:
05/16/10 09:09:43 (13 years ago)
Author:
Mark Evenson
Message:

Thunk through URL.toURI() for getting URL authority.

Fixes loading from OSGi context with 'bundleresource:' for which the
java.net.URL object is incorrectly returning 'SECURITY_CHECKED' from
getAuthority().

File:
1 edited

Legend:

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

    r12667 r12689  
    356356            }
    357357            Debug.assertTrue(scheme != null);
    358             String authority = url.getAuthority();
    359             Debug.assertTrue(authority != null);
    360 
    361             host = NIL;
    362             host = host.push(SCHEME);
    363             host = host.push(new SimpleString(scheme));
    364             host = host.push(AUTHORITY);
    365             host = host.push(new SimpleString(authority));
    366 
    367             device = NIL;
    368            
    369             // URI encode necessary characters
     358      //      String authority = url.getAuthority();
    370359            URI uri = null;
    371360            try {
     
    376365                                    + " because: " + e));
    377366            }
    378 
     367            String authority = uri.getAuthority();
     368            Debug.assertTrue(authority != null);
     369
     370            host = NIL;
     371            host = host.push(SCHEME);
     372            host = host.push(new SimpleString(scheme));
     373            host = host.push(AUTHORITY);
     374            host = host.push(new SimpleString(authority));
     375
     376            device = NIL;
     377           
     378            // URI encode necessary characters
    379379            String path = uri.getRawPath();
    380380            if (path == null) {
Note: See TracChangeset for help on using the changeset viewer.