Hi,
Am Montag, 13. Mai 2013 02:25:03 UTC+2 schrieb Korny:
>
> If I call (add-identity agent {:private-key-path "foo" :passphrase "bar"})
> the clj-ssh library (eventually) calls a java method:
>
> (.addIdentity agent "foo" "bar")
>
> This method has several implementations, including:
> public void addIdentity(java.lang.String prvkey, byte[] passphrase);
> public void addIdentity(java.lang.String prvkey, java.lang.String
> passphrase);
> and for some reason this fails with
> ClassCastException java.lang.String cannot be cast to [B
>
>
The contract of add-identity states that the passphrase has to be a
byte-array. The passphrase is in fact "cast" to a byte-array so Clojure
hardwires that call and doesn't use reflection to find the string overload.
HTH.
Meikel
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.