I'd like to have my JS code do something like this:
foo.someJavaMethod({
key: 'value'
});
Where someJavaMethod looks like:
public void someJavaMethod(Map<String, String> params) {
...
}
However, when I do that, I get an error in JS: "Cannot convert [object
Object] to java.util.Map". If I make params an Object, then I can get
a handle to the NativeObject, but I can't quite figure out how to
navigate and convert it through. Any tips?
Patrick
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino