* Unwrap argument in isTypedObject(). Fixes bug 523.

http://helma.org/bugs/show_bug.cgi?id=523
This commit is contained in:
hns 2007-05-24 14:27:17 +00:00
parent a20913ab7f
commit 2ae82c3baf

View file

@ -464,6 +464,8 @@ public class RhinoEngine implements ScriptingEngine {
* @return true if the object is mapped to a type
*/
public boolean isTypedObject(Object obj) {
if (obj instanceof Wrapper)
obj = ((Wrapper) obj).unwrap();
if (obj == null || obj instanceof Map || obj instanceof NativeObject)
return false;
if (obj instanceof IPathElement) {