Opened 10 years ago

Closed 10 years ago

#882 closed defect (fixed)

[patch] (restart-case (warn ... ))

Reported by: jlawrence Owned by: rme
Priority: normal Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: restart-case restart-case-form Cc:


(handler-bind ((warning (lambda (w)
                          (declare (ignore w))
                          (invoke-restart 'eleven))))
  (restart-case (warn "foo")
    (eleven () 11)))


value #<SIMPLE-CONDITION #x302000E8041D> is not of the expected type WARNING.
   [Condition of type TYPE-ERROR]

A simple-error is created by error, but a simple-warning is not created by warning :)

--- ccl/lib/macros.lisp	(revision 15001)
+++ ccl/lib/macros.lisp	(working copy)
@@ -409,7 +409,7 @@
           ((signal error warn)
              (cond &rest args) expansion
-             (setq condform `(condition-arg ,cond (list ,@args) ,(if (eq head 'warning)
+             (setq condform `(condition-arg ,cond (list ,@args) ,(if (eq head 'warn)
                                                                    (if (eq head 'error)

Attachments (1)

macros.lisp.patch (735 bytes) - added by jlawrence 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by jlawrence

comment:1 Changed 10 years ago by rme

  • Owner set to rme
  • Status changed from new to assigned

comment:2 Changed 10 years ago by rme

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [15002]) Apply restart-case-form patch from ticket:882.

Fixes ticket:882.

Note: See TracTickets for help on using tickets.