Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
1.2.1
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
2461
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.