From 2c8585c611329f4d926b42e2f5b96393cb15ceec Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 4 Mar 2003 18:17:47 +0000 Subject: [PATCH] Exclude "hopobject" from isInstance() to force consistent naming for macro handlers (use "this" instead of "hopobject"). --- src/helma/framework/core/Prototype.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/framework/core/Prototype.java b/src/helma/framework/core/Prototype.java index d5be101a..9406f6b1 100644 --- a/src/helma/framework/core/Prototype.java +++ b/src/helma/framework/core/Prototype.java @@ -140,7 +140,7 @@ public final class Prototype { public final boolean isInstanceOf (String pname) { if (name.equals (pname)) return true; - if (parent != null) + if (parent != null && !"hopobject".equalsIgnoreCase (parent.getName())) return parent.isInstanceOf (pname); return false; }