jobjects that represent the same Java object are not necessarily equal in any Lisp sense, and their addresses are not necessarily equal either. In fact, normally they will be different if they come from a different Java call. To check whether two
jobjects represent the same Java object, use java-objects-eq (which takes CLOS Java instances too).
The print-function of
jobject tries to print its Java class name, but what it prints may be a parent class of the actual class of the
jobject. The function jobject-class-name returns the name of the actual class of the jobject, and also caches it in the
LispWorks User Guide and Reference Manual - 13 Feb 2015