From 9e5ab594934f5879120290f7732b9dc6065a2cfd Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 25 Jun 2003 10:46:37 +0000 Subject: [PATCH] Do not create a constructor for HopObject - this is done by defineClass(). --- src/helma/scripting/rhino/RhinoCore.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index c1bda903..beff25ce 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -176,7 +176,9 @@ public final class RhinoCore { // Register a constructor for all types except global. // This will first create a new prototyped hopobject and then calls // the actual (scripted) constructor on it. - if (!"global".equalsIgnoreCase(name) && !"root".equalsIgnoreCase(name)) { + if (!"global".equalsIgnoreCase(name) && + !"root".equalsIgnoreCase(name) && + !"hopobject".equalsIgnoreCase(name)) { try { installConstructor(name, op); } catch (Exception ignore) {