james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/mailet MailAddress.java
Date Sat, 04 Aug 2001 02:52:08 GMT
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
<gabriel.bucher@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 <rlogiacco@mail.com>
    * @author Serge Knystautas <sergek@lokitech.com>
  + * @author Gabriel Bucher <gabriel.bucher@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


Mime
View raw message