dimanche 22 novembre 2015

Passing to Java int[] from Jython PyList

Guys,

Now I am stucked with the specific question, asking for you guys help. KeyWords: Java Reflection, Jython PyList, NoSuchMethodException

Java Side:

targetMethod(int []) is the method exactly I want to call by reflecting. Do pay attention to the int [] param.

Jython Side:

l_params = [1,2,3]

Problem:

When I tried to do the reflection call by passing type(l_params), got info below:

java.lang.NoSuchMethodException: targetMethod(org.python.core.PyArray) at java.lang.Class.getDeclaredMethod(Unknown Source)

So how to deal with it? Hoping to get a light from you.





Aucun commentaire:

Enregistrer un commentaire