|
From: bwgoudey <bwg...@gm...> - 2007-08-19 16:10:45
|
I'm having trouble passing a String[][] to a java function. If I try passing it a python array of array of strings, ie [["a b"], ["c d e"]], I get the error "java.lang.IllegalArgumentException: Not a String or String[][]; got [['a b'], ['c d e']]". I had thought that lists and strings in python were supposed to be converted to their Java equivalent when needed but that does not seem to occur here. Perhaps I have to create my array using jarray but I am unsure how to use this for creating arrays of arrays. Does anyone have any ideas as to why I am unable to pass my object correctly? Thanks -- View this message in context: http://www.nabble.com/Can%27t-pass-String------to-a-java-function-tf4293984.html#a12223550 Sent from the jython-users mailing list archive at Nabble.com. |