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.
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: ArrayIndexOutOf BoundsException : 11 SimpleDateForma t.formatWithAtt ribute( SimpleDateForma t.java: 793) SimpleDateForma t.format( SimpleDateForma t.java: 845) DateFormat. format( DateFormat. java:419) text.Document. addCreationDate (itext- 2.1.7.jar. so) text.pdf. PdfDocument. <init>( itext-2. 1.7.jar. so) text.pdf. PdfStamperImp. <init>( itext-2. 1.7.jar. so)
java.lang.
at java.text.
at java.text.
at java.text.
at com.lowagie.
at com.lowagie.
at com.lowagie.
I tried unsuccessfully to reproduce the exception with an own written small java program calling SimpleDateForma t.format directly. The source code of SimpleDateFormat can be found in the gcc-4.4 source. At first view, everything seems fine there.