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

*** shadow/2461 Thu Jul  5 09:11:44 2001
--- shadow/2461.tmp.4213        Thu Jul  5 09:11:44 2001
***************
*** 0 ****
--- 1,30 ----
+ +============================================================================+
+ | Creating a new MailAddress can result in a java.lang.StringIndexOutOfBound |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2461                        Product: James                   |
+ |       Status: NEW                         Version: 1.2.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Mailet API              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                 |
+ |  Reported By: [EMAIL PROTECTED]                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The following code generates a java.lang.StringIndexOutOfBoundsException 
+ exception: -
+ 
+ MailAddress mailAddr = new MailAddress("A@B.");
+ 
+ The exception is as follows: -
+ 
+ Jul 05 16:59:59 2001: java.lang.StringIndexOutOfBoundsException: String index 
+ out of range: 4
+ Jul 05 16:59:59 2001:         at java.lang.String.charAt(String.java:503)
+ Jul 05 16:59:59 2001:         at org.apache.mailet.MailAddress.<init>
+ (MailAddress.java:102)
+ 
+ I can only generate this error if the last character is a fullstop.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to