From b66a0eb8bed62c9b730fa33ac32dc4aa6a024310 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 29 Jan 2008 10:13:27 +0000 Subject: [PATCH] * Fix getDefaultValue() for JSAdapter to be called on adapter, not adaptee. --- src/helma/scripting/rhino/JSAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/JSAdapter.java b/src/helma/scripting/rhino/JSAdapter.java index 2a698047..6af3000e 100644 --- a/src/helma/scripting/rhino/JSAdapter.java +++ b/src/helma/scripting/rhino/JSAdapter.java @@ -241,7 +241,7 @@ public final class JSAdapter implements Scriptable, Function { } public Object getDefaultValue(Class hint) { - return getAdaptee().getDefaultValue(hint); + return ScriptableObject.getDefaultValue(this, hint); } public Object call(Context cx, Scriptable scope, Scriptable thisObj,