Avoiding reflection in calling a Java variadic method in Clojure -
i'm trying avoid reflection in calling issueinputparameters.addcustomfieldvalue() jira api. however, when type-hinted, clojure still emits warning reflection in use.
the method signature given in javadocs follows:
issueinputparameters addcustomfieldvalue(long customfieldid, string... values) as such, i'm attempting call so:
(fn [^com.atlassian.jira.issue.issueinputparameters i, ^long l] (.addcustomfieldvalue l (into-array string ["foo"]))) actual invocations work, reflection used:
reflection warning, no_source_path:1 - call addcustomfieldvalue can't resolved. how can avoided?
hinting string[] explicitly works when done follows:
(fn [^com.atlassian.jira.issue.issueinputparameters i, ^long l] (.addcustomfieldvalue l ^"[ljava.lang.string;" (into-array string ["foo"])))
Comments
Post a Comment