Byron
2007-10-18 14:00:54 UTC
I'm trying to pass a Jython dictionary of the form {"a":"b"} to a Java
method that takes a java.util.Map as its parameter type. The error I
get is:
1st arg can't be coerced to java.util.Map
Is there a technique for doing this? Would it be a worthwhile change
to have org.apache.jython.core.PyDictionary implement the
java.util.Map interface to make this sort of thing more seamless?
method that takes a java.util.Map as its parameter type. The error I
get is:
1st arg can't be coerced to java.util.Map
Is there a technique for doing this? Would it be a worthwhile change
to have org.apache.jython.core.PyDictionary implement the
java.util.Map interface to make this sort of thing more seamless?