From 6950c5c0d7f4008885990e39b429cc9c52de3d2b Mon Sep 17 00:00:00 2001 From: markt Date: Mon, 7 Dec 2009 19:12:18 +0000 Subject: [PATCH] Add missing part of recurrsion patch git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@888092 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/IntrospectionUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/org/apache/tomcat/util/IntrospectionUtils.java b/java/org/apache/tomcat/util/IntrospectionUtils.java index 9317cf80e..e5fc9cf6d 100644 --- a/java/org/apache/tomcat/util/IntrospectionUtils.java +++ b/java/org/apache/tomcat/util/IntrospectionUtils.java @@ -260,7 +260,8 @@ public final class IntrospectionUtils { public static boolean setProperty(Object o, String name, String value) { return setProperty(o,name,value,true); } - public static boolean setProperty(Object o, String name, String value,boolean invokeSetProperty) { + public static boolean setProperty(Object o, String name, String value, + boolean invokeSetProperty) { if (log.isDebugEnabled()) log.debug("IntrospectionUtils: setProperty(" + o.getClass() + " " + name + "=" + value + ")"); @@ -351,7 +352,8 @@ public final class IntrospectionUtils { } // Ok, no setXXX found, try a setProperty("name", "value") - if (setPropertyMethodBool != null || setPropertyMethodVoid != null) { + if (invokeSetProperty && (setPropertyMethodBool != null || + setPropertyMethodVoid != null)) { Object params[] = new Object[2]; params[0] = name; params[1] = value; -- 2.11.0