Skip to content

Commit

Permalink
Fix #542: abcl: fix getting struct name
Browse files Browse the repository at this point in the history
* slynk/backend/abcl.lisp (emacs-inspect): Use CLASS-NAME, not JSS::GET-JAVA-FIELD
  • Loading branch information
Uthar authored and joaotavora committed Nov 8, 2022
1 parent f30f8b9 commit 992e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slynk/backend/abcl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ LIST is destructively modified."
`("No slots available for inspection."))))

(defmethod emacs-inspect ((object sys::structure-class))
(let* ((name (jss::get-java-field object "name" t))
(let* ((name (class-name object))
(def (get name 'system::structure-definition)))
`((:label "Class: ") (:value ,object) (:newline)
(:label "Raw defstruct definition: ") (:value ,def ,(let ((*print-array* nil)) (prin1-to-string def))) (:newline)
Expand Down

0 comments on commit 992e3f3

Please sign in to comment.