Comment 5 for bug 487922

Revision history for this message
Johann Felix Soden (johfel) wrote :

The exception only occurs between April and December. It seems that the current month is used as an index to an array with 3 entries. With libgcj10-dbg installed, I get the following more verbose back trace:

Unhandled Java Exception:
java.lang.ArrayIndexOutOfBoundsException: 11
   at java.text.SimpleDateFormat.formatWithAttribute(SimpleDateFormat.java:793)
   at java.text.SimpleDateFormat.format(SimpleDateFormat.java:845)
   at java.text.DateFormat.format(DateFormat.java:419)
   at com.lowagie.text.Document.addCreationDate(itext-2.1.7.jar.so)
   at com.lowagie.text.pdf.PdfDocument.<init>(itext-2.1.7.jar.so)
   at com.lowagie.text.pdf.PdfStamperImp.<init>(itext-2.1.7.jar.so)

I tried unsuccessfully to reproduce the exception with an own written small java program calling SimpleDateFormat.format directly. The source code of SimpleDateFormat can be found in the gcc-4.4 source. At first view, everything seems fine there.