ASF Bugzilla – Attachment 30499 Details for
Bug 55159
Wasted work in ErrorReportValve.getPartialServletStackTrace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch.diff (text/plain), 881 bytes, created by
Adrian Nistor
on 2013-06-29 19:12:03 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Adrian Nistor
Created:
2013-06-29 19:12:03 UTC
Size:
881 bytes
patch
obsolete
>Index: java/org/apache/catalina/valves/ErrorReportValve.java >=================================================================== >--- java/org/apache/catalina/valves/ErrorReportValve.java (revision 1497999) >+++ java/org/apache/catalina/valves/ErrorReportValve.java (working copy) >@@ -272,11 +272,12 @@ > trace.append(t.toString()).append('\n'); > StackTraceElement[] elements = t.getStackTrace(); > int pos = elements.length; >- for (int i = 0; i < elements.length; i++) { >+ for (int i = elements.length - 1; i >= 0; i--) { > if ((elements[i].getClassName().startsWith > ("org.apache.catalina.core.ApplicationFilterChain")) > && (elements[i].getMethodName().equals("internalDoFilter"))) { > pos = i; >+ break; > } > } > for (int i = 0; i < pos; i++) {
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 55159
: 30499 |
30500