From 0aaa141a4b7859b923ce1789b623a5291b486237 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 15 May 2008 09:09:40 +0000 Subject: [PATCH] * Fix bug 617: Only resolve direct prototype matches in parent chain. --- src/helma/framework/core/Skin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/Skin.java b/src/helma/framework/core/Skin.java index 61b3712e..55637138 100644 --- a/src/helma/framework/core/Skin.java +++ b/src/helma/framework/core/Skin.java @@ -1103,9 +1103,9 @@ public final class Skin { // limiting to 50 passes to avoid infinite loops int maxloop = 50; while (obj != null && maxloop-- > 0) { - Prototype proto = app.getPrototype(obj); + String protoName = app.getPrototypeName(obj); - if ((proto != null) && proto.isInstanceOf(handlerName)) { + if (handlerName.equalsIgnoreCase(protoName)) { if (handlerCache != null) handlerCache.put(handlerName, obj); return obj;