Changeset 12760
- Timestamp:
- 06/20/10 20:38:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Load.java
r12749 r12760 199 199 verbose, print, false, returnLastResult); 200 200 } 201 catch (FaslVersionMismatch e) {202 StringBuilder sb =203 new StringBuilder("Incorrect fasl version: ");204 sb.append(truename);205 return error(new SimpleError(sb.toString()));206 }207 201 finally { 208 202 if (in != null) { … … 329 323 return loadFileFromStream(pathname, truename, stream, 330 324 verbose, print, auto); 331 } catch (FaslVersionMismatch e) {332 StringBuilder sb =333 new StringBuilder("; Incorrect fasl version: ");334 sb.append(truename);335 System.err.println(sb.toString());336 325 } finally { 337 326 thread.resetSpecialBindings(mark); … … 408 397 409 398 { 399 final LispThread thread = LispThread.currentThread(); 410 400 if (first == Keyword.VERSION) { 411 401 if (second.eql(_FASL_VERSION_.getSymbolValue())) { 412 402 // OK 413 final LispThread thread = LispThread.currentThread();414 403 thread.bindSpecial(_FASL_UNINTERNED_SYMBOLS_, NIL); 415 404 thread.bindSpecial(_SOURCE_, NIL); … … 417 406 } 418 407 } 419 throw new FaslVersionMismatch(second); 408 return 409 error(new SimpleError("FASL version mismatch; found '" 410 + second.writeToString() + "' but expected '" 411 + _FASL_VERSION_.getSymbolValue().writeToString() 412 + "' in " 413 + Symbol.LOAD_PATHNAME.symbolValue(thread).writeToString())); 420 414 } 421 415 } … … 701 695 } 702 696 } 703 704 private static class FaslVersionMismatch extends Error705 {706 private final LispObject version;707 708 public FaslVersionMismatch(LispObject version)709 {710 this.version = version;711 }712 713 public LispObject getVersion()714 {715 return version;716 }717 }718 697 }
Note: See TracChangeset
for help on using the changeset viewer.