Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (let [n 3
- b (byte-array n)
- p (proxy [java.io.InputStream] []
- (read [] -1))]
- ;; Returns -1, which is expected.
- (.read p)
- ;; Throws clojure.lang.AFn.throwArity, unexpected; should call
- ;; InputStream.read(byte[], int, int)
- (.read p b 0 n))
Advertisement
Add Comment
Please, Sign In to add comment