[#415] Add java.util.Arrays/copyOf

This commit is contained in:
Michiel Borkent 2020-05-07 09:04:53 +02:00
parent 68d329e318
commit 08478d966e
2 changed files with 6 additions and 1 deletions

View file

@ -69,7 +69,9 @@
;; not supported: {:name "setURLStreamHandlerFactory"} ;; not supported: {:name "setURLStreamHandlerFactory"}
{:name "toExternalForm"} {:name "toExternalForm"}
{:name "toString"} {:name "toString"}
{:name "toURI"}]}} {:name "toURI"}]}
java.util.Arrays
{:methods [{:name "copyOf"}]}}
features/xml? (assoc `com.sun.xml.internal.stream.XMLInputFactoryImpl features/xml? (assoc `com.sun.xml.internal.stream.XMLInputFactoryImpl
{:methods [{:name "<init>" :parameterTypes []}]} {:methods [{:name "<init>" :parameterTypes []}]}
`com.sun.xml.internal.stream.XMLOutputFactoryImpl `com.sun.xml.internal.stream.XMLOutputFactoryImpl

View file

@ -463,6 +463,9 @@
(bb nil "(yaml/generate-string [{:name \"John Smith\", :age 33} {:name \"Mary Smith\", :age 27}])") (bb nil "(yaml/generate-string [{:name \"John Smith\", :age 33} {:name \"Mary Smith\", :age 27}])")
"-"))) "-")))
(deftest arrays-copy-of-test
(is (= "foo" (bb nil "(String. (java.util.Arrays/copyOf (.getBytes \"foo\") 3))"))))
;;;; Scratch ;;;; Scratch
(comment (comment