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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
* @author Serge Knystautas <[EMAIL PROTECTED]>
+ * @author Gabriel Bucher <[EMAIL PROTECTED]>
*/
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]