craigmcc 2002/06/22 20:00:58
Modified: src/example/org/apache/struts/webapp/example
LogonAction.java
Log:
Avoid a compile-time error found by Jikes, by throwing a real exception
instead.
PR: Bugzilla #7489
Submitted by: Marcelo Vanzin <vanza at rededc.com.br>
Revision Changes Path
1.8 +5 -5
jakarta-struts/src/example/org/apache/struts/webapp/example/LogonAction.java
Index: LogonAction.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/example/org/apache/struts/webapp/example/LogonAction.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- LogonAction.java 11 Mar 2002 06:13:13 -0000 1.7
+++ LogonAction.java 23 Jun 2002 03:00:58 -0000 1.8
@@ -197,7 +197,7 @@
// Force an ArithmeticException which can be handled explicitly
if ("arithmetic".equals(username)) {
- int a = 10 / 0;
+ throw new ArithmeticException();
}
// Force an application-specific exception which can be handled
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>