You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/05/18 21:25:05 UTC

DO NOT REPLY [Bug 29071] New: - bug in ExceptionHandler, method calling itself

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29071>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29071

bug in ExceptionHandler, method calling itself

           Summary: bug in ExceptionHandler, method calling itself
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: hal.deadman@tallan.com


// the following method, although slated for removal, results in stack overflow
// needs a cast of error to ActionMessage

    protected void storeException(
        HttpServletRequest request,
        String property,
        ActionError error,
        ActionForward forward,
        String scope) {

        this.storeException(request, property, error, forward, scope);
        // :TODO: Remove after Struts 1.2

    }



Index: ExceptionHandler.java
===================================================================
RCS file: /home/cvspublic/jakarta-
struts/src/share/org/apache/struts/action/ExceptionHandler.java,v
retrieving revision 1.24
diff -u -r1.24 ExceptionHandler.java
--- ExceptionHandler.java	20 Dec 2003 12:54:10 -0000	1.24
+++ ExceptionHandler.java	18 May 2004 19:23:31 -0000
@@ -188,7 +188,7 @@
         ActionForward forward,
         String scope) {
 
-        this.storeException(request, property, error, forward, scope);
+        this.storeException(request, property, (ActionMessage)error, forward, 
scope);
         // :TODO: Remove after Struts 1.2
 
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org