Skip to content

Commit 410784c

Browse files
committed
document Type.toString divergence from java.lang.Class
1 parent 47b18b3 commit 410784c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sci/lang.cljc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
(getVal [_] data)
1616
(setVal [_ v] (set! data v))
1717
Object
18+
;; NOTE: returns "user.Foo" rather than "class user.Foo" (unlike java.lang.Class).
19+
;; Changing this would break downstream libs (e.g. prismatic/schema).
1820
(toString [_]
1921
(str (:sci.impl/type-name data)))
2022

0 commit comments

Comments
 (0)