Opened 8 years ago
Last modified 3 months ago
#239 assigned defect
DEFGENERIC with unsuitable :generic-function-class gives incomprehensible error
Reported by: | rschlatte | Owned by: | rschlatte |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.1 |
Component: | CLOS | Version: | 1.2.0-dev |
Keywords: | Cc: | ||
Parent Tickets: |
Description
Compiling and loading the following (incorrect) file gives an error saying that foo-generic-function is not of type standard-generic-function. The real error is that foo-generic-function must be defined with (:metaclass funcallable-standard-class) to be suitable as a generic function class.
(require :clos) (defclass foo-generic-function (standard-generic-function)) (defgeneric goo (a b) (:generic-function-class foo-generic-function) (:method (a b) (princ "default method"))) (print #'goo)
The attached patch would emit a full warning in defgeneric, but currently find-class does not implement correct behavior when called with 3 parameters.
Attachments (1)
Change History (18)
Changed 8 years ago by
Attachment: | defgeneric-patch.patch added |
---|
comment:1 Changed 8 years ago by
Component: | (A)MOP → CLOS |
---|---|
Owner: | changed from ehuelsmann to somebody |
See #240 for the bug blocking the fix for this one.
comment:2 Changed 8 years ago by
Milestone: | → 1.2.0 |
---|---|
Version: | → 1.2.0-dev |
comment:3 Changed 8 years ago by
Owner: | changed from somebody to rschlatte |
---|---|
Status: | new → assigned |
comment:4 Changed 8 years ago by
Milestone: | 1.2.0 → 1.3.0 |
---|
comment:5 Changed 7 years ago by
Summary: | defgeneric with unsuitable :generic-function-class gives incomprehensible error → DEFGENERIC with unsuitable :generic-function-class gives incomprehensible error |
---|
comment:8 Changed 7 years ago by
Milestone: | 2.0.0 → 1.4.0 |
---|
comment:11 Changed 14 months ago by
Milestone: | 1.6.0 → 1.6.1 |
---|
Ticket retargeted after milestone closed
comment:12 Changed 9 months ago by
Milestone: | 1.6.1 → 1.6.2 |
---|
Ticket retargeted after milestone closed
comment:13 Changed 8 months ago by
Milestone: | 1.6.2 → 1.7.0 |
---|
comment:14 Changed 8 months ago by
Milestone: | 1.7.0 → 1.7.1 |
---|
Ticket retargeted after milestone closed
comment:15 Changed 6 months ago by
Milestone: | 1.7.1 → 1.7.2 |
---|
Ticket retargeted after milestone closed
comment:17 Changed 3 months ago by
Milestone: | 1.8.0 → 1.8.1 |
---|
Ticket retargeted after milestone closed
defgeneric generic-function-class warning patch