when i run this from repl:
(def md (MessageDigest/getInstance "SHA-1"))
(. md update (into-array [(byte 1) (byte 2) (byte 3)]))
I get:
No matching method found: update for class java.security.MessageDigest$Delegate
The Java 6 docs for MessageDigest show:
update(byte[] input)
Updates the digest using the specified array of bytes.
and the class (class (into-array [(byte 1) (byte 2) (byte 3)]))is equal
[Ljava.lang.Byte;
Am I missing something in the update definition?
Without creating a class, I think I?
Without passing this type, I think I?
source
share