Skip to content

Commit ae8557b

Browse files
committed
coerce to avoid reflection on Character/isDigit
1 parent f8f44e0 commit ae8557b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/clojure/clojure/tools/analyzer/jvm.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
(maybe-class-literal sym-ns))] ;; Class/field
129129
(let [opname (name form)]
130130
(if (and (= (count opname) 1)
131-
(Character/isDigit (first opname)))
131+
(Character/isDigit (char (first opname))))
132132
form ;; Array/<n>
133133
(with-meta (list '. target (symbol (str "-" opname))) ;; transform to (. Class -field)
134134
(meta form))))

src/main/clojure/clojure/tools/analyzer/jvm/utils.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
(defn maybe-array-class-sym [x]
9797
(let [sname (name x)]
9898
(if-let [c (and (= (count sname) 1)
99-
(Character/isDigit (first sname))
99+
(Character/isDigit (char (first sname)))
100100
(namespace x))]
101101
(when-let [c (or (specials c)
102102
(maybe-class-from-string c))]

0 commit comments

Comments
 (0)