You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by se...@apache.org on 2001/08/04 04:52:08 UTC
cvs commit: jakarta-james/src/java/org/apache/mailet MailAddress.java
serge 01/08/03 19:52:08
Modified: src/java/org/apache/mailet MailAddress.java
Log:
Fixed silly bug where it was not catching the correct exception. Submitted by Gabriel Bucher <ga...@razor.ch>
Revision Changes Path
1.2 +2 -1 jakarta-james/src/java/org/apache/mailet/MailAddress.java
Index: MailAddress.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/mailet/MailAddress.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MailAddress.java 2001/05/11 08:50:26 1.1
+++ MailAddress.java 2001/08/04 02:52:08 1.2
@@ -47,6 +47,7 @@
* @version 1.0
* @author Roberto Lo Giacco <rl...@mail.com>
* @author Serge Knystautas <se...@lokitech.com>
+ * @author Gabriel Bucher <ga...@razor.ch>
*/
public class MailAddress implements java.io.Serializable {
//We hardcode the serialVersionUID so that from James 1.2 on,
@@ -118,7 +119,7 @@
if (hostSB.toString().length() == 0) {
throw new ParseException("No domain found at position " + (pos + 1));
}
- } catch (ArrayIndexOutOfBoundsException aioobe) {
+ } catch (IndexOutOfBoundsException ioobe) {
throw new ParseException("Out of data at position " + (pos + 1));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org