https://issues.apache.org/bugzilla/show_bug.cgi?id=48252
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 20 Nov 2009 16:57:31 +0000 (16:57 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 20 Nov 2009 16:57:31 +0000 (16:57 +0000)
Fix potential recursion

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@882640 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/IntrospectionUtils.java
java/org/apache/tomcat/util/net/AbstractEndpoint.java

index 9d750a6..9317cf8 100644 (file)
@@ -258,6 +258,9 @@ public final class IntrospectionUtils {
      * you can have setDebug(1).
      */
     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) {
         if (log.isDebugEnabled())
             log.debug("IntrospectionUtils: setProperty(" +
                     o.getClass() + " " + name + "=" + value + ")");
index 8afcb80..89e0843 100644 (file)
@@ -312,7 +312,7 @@ public abstract class AbstractEndpoint {
             if (name.startsWith(socketName)) {
                 return IntrospectionUtils.setProperty(socketProperties, name.substring(socketName.length()), value);
             } else {
-                return IntrospectionUtils.setProperty(this,name,value);
+                return IntrospectionUtils.setProperty(this,name,value,false);
             }
         }catch ( Exception x ) {
             log.error("Unable to set attribute \""+name+"\" to \""+value+"\"",x);