From 2ae82c3baf2d551fa7eb12ef653dc49453d748bc Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 24 May 2007 14:27:17 +0000 Subject: [PATCH] * Unwrap argument in isTypedObject(). Fixes bug 523. http://helma.org/bugs/show_bug.cgi?id=523 --- src/helma/scripting/rhino/RhinoEngine.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index 6d864713..60c9531a 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -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) {