ASF Bugzilla – Attachment 25134 Details for
Bug 48252
StackOverflowError in NioEndpoint.setProperty when setting jkHome
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch in other way
Tomcat 6.0 BUG 48252.patch (text/plain), 1.06 KB, created by
William Leung
on 2010-03-16 07:57:01 UTC
(
hide
)
Description:
Patch in other way
Filename:
MIME Type:
Creator:
William Leung
Created:
2010-03-16 07:57:01 UTC
Size:
1.06 KB
patch
obsolete
>Index: java/org/apache/tomcat/util/IntrospectionUtils.java >=================================================================== >--- java/org/apache/tomcat/util/IntrospectionUtils.java (revision 891292) >+++ java/org/apache/tomcat/util/IntrospectionUtils.java (working copy) >@@ -346,6 +346,17 @@ > > // Ok, no setXXX found, try a setProperty("name", "value") > if (setPropertyMethodBool != null || setPropertyMethodVoid != null) { >+ // check callers to detect infinit loops >+ StackTraceElement frame[] = new Throwable().getStackTrace(); >+ if (frame != null) { >+ for (StackTraceElement caller : frame) { >+ if (caller.getMethodName().equals("setProperty") >+ && caller.getClassName().equals(o.getClass().getName())) { >+ return false; >+ } >+ } >+ } >+ > Object params[] = new Object[2]; > params[0] = name; > params[1] = value;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48252
:
24573
| 25134