* Fix bug 617: Only resolve direct prototype matches in parent chain.

This commit is contained in:
hns 2008-05-15 09:09:40 +00:00
parent 3104b4c48a
commit 0aaa141a4b

View file

@ -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;