1.0.37.50: check for unbound FORMAT-CONTROL for SIMPLE-CONDITIONs
authorNikodemus Siivola <nikodemus@random-state.net>
Wed, 7 Apr 2010 14:38:02 +0000 (14:38 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Wed, 7 Apr 2010 14:38:02 +0000 (14:38 +0000)
 ...in the default PRINT-OBJECT method.

src/code/condition.lisp
version.lisp-expr

index 14a50ce..21dacb2 100644 (file)
 ;;; The current code doesn't seem to quite match that.
 (def!method print-object ((x condition) stream)
   (if *print-escape*
-      (if (typep x 'simple-condition)
+      (if (and (typep x 'simple-condition) (slot-boundp x 'format-control))
           (print-unreadable-object (x stream :type t :identity t)
             (format stream "~S" (simple-condition-format-control x)))
           (print-unreadable-object (x stream :type t :identity t)))
index ea30468..70a84a8 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.37.49"
+"1.0.37.50"