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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -