From: Waclawczyk J. <Jan...@ic...> - 2001-06-05 13:29:21
|
Hello, I try to call in my jython script a java method, which expects Hashtable as argument. But it fails: Jython 2.0 on java1.1.8 (JIT: ) >>> import Test1 # it is my java test class >>> Test1.testPyToJavaHash({"key":"value"}) TypeError: testPyToJavaHash(): 1st arg can't be coerced to java.util.Hashtable Why is it not possible? (due to primitive types ? ) It would be a nice feature ! (e.g. int -> Integer, ...) Regards, Janusz Waclawczyk |