Skip to content

Commit

Permalink
Merge pull request #13 from kilianmh/fix/class-redefinition
Browse files Browse the repository at this point in the history
Fix: json-serializable-class redefinition
  • Loading branch information
gschjetne authored Aug 16, 2023
2 parents 4f3e9b0 + 4bbb7e0 commit af3286a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/json-mop.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,11 @@
(append direct-superclasses (list (find-class 'json-serializable)))
rest))

(defmethod reinitialize-instance :around ((class json-serializable-class)
&rest rest &key direct-superclasses)
(apply #'call-next-method
class
:direct-superclasses
(append direct-superclasses (list (find-class 'json-serializable)))
rest))

0 comments on commit af3286a

Please sign in to comment.