Hi,

looking through WrapFactory.wrap(), java.lang.Class objects are not
wrapped in NativeJavaClass but in NativeJavaObject. Is this
intentional or a bug?

It gives me some weird behaviour when a Class travels from a) JS to b)
Java back to c) JS.
In a) its still a NativeJavaClass,
in b) Context.jsToJava() aka NativeJavaObject.coerceTypeImpl() its
unwrapped to java.lang.Class
and in c) WrapFactory.wrap() its wrapped in NativeJavaObject.
The result is that static methods/props can't be invoked anymore.

Thanks,
  Helge
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to