* Fix bug 617: Only resolve direct prototype matches in parent chain.
This commit is contained in:
parent
3104b4c48a
commit
0aaa141a4b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue