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/02/19 20:03:00 UTC

DO NOT REPLY [Bug 27051] - PresentTag.java swallows JSPException when it should be thrown

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27051

PresentTag.java swallows JSPException when it should be thrown

husted@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Normal                      |Enhancement



------- Additional Comments From husted@apache.org  2004-02-19 19:02 -------
The code this method is calling seems to throw an exception if the bean is not
present. So if all exceptions were not swallowed, it seems that the code would
expose an exception rather than return false. I agree that the current approach
is problematic. The caller needs to analyze the exceptions thrown and pass
through those related to programmer and systemic error, like "no such method" or
"illegal access". If someone supplies a patch that does this, I'd be happy to
apply it. (Just be sure it is against the nightly build.) For now, I'm tagging
the ticket as an enhancement.

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