Changeset 15570
- Timestamp:
- 04/06/22 21:26:55 (12 months ago)
- Location:
- trunk/abcl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/java.lisp
r15569 r15570 460 460 (if (jnull-ref-p obj) 461 461 (write-string "#<null>" stream) 462 (print-java-object-by-class ( intern (jclass-name (jobject-class obj)) 'keyword) obj stream)))462 (print-java-object-by-class (jobject-class obj) obj stream))) 463 463 464 464 ;;define extensions by eql methods on class name interned in keyword package -
trunk/abcl/test/lisp/abcl/runtime-class.lisp
r14903 r15570 54 54 "Someone")) 55 55 "Someone") 56 57 ;; print-object 58 (deftest runtime-class.print-object 59 (subseq 60 (with-output-to-string (stream) 61 (print-object 62 (java:jnew 63 (java:jnew-runtime-class 64 "FooList" 65 :superclass "java.util.AbstractList" 66 :methods '(("get" "java.lang.Object" (:int) 67 (lambda (this index) 68 "Foo")) 69 ("size" :int () 70 (lambda (this) 71 15))))) 72 stream)) 73 0 74 20) 75 "#<FooList [Foo, Foo,")
Note: See TracChangeset
for help on using the changeset viewer.