<changes>
<release version="3.9-beta1" date="2012-??-??">
+ <action dev="poi-developers" type="fix">53369 - Fixed tests failing on JDK 1.7</action>
<action dev="poi-developers" type="fix">53360 - Fixed SXSSF to correctly write text before escaped Unicode control character</action>
<action dev="poi-developers" type="add">Change HSMF Types to have full data on ID, Name and Length, rather than just being a simple ID</action>
<action dev="poi-developers" type="add">48469 - Updated case study</action>
StringBuffer descBuf = CellFormatPart.parseFormat(format,
CellFormatType.DATE, partHandler);
partHandler.finish(descBuf);
- dateFmt = new SimpleDateFormat(descBuf.toString());
+ // tweak the format pattern to pass tests on JDK 1.7,
+ // See https://issues.apache.org/bugzilla/show_bug.cgi?id=53369
+ String ptrn = descBuf.toString().replaceAll("((y)(?!y))(?<!yy)", "yy");
+ dateFmt = new SimpleDateFormat(ptrn, LOCALE);
}
/** {@inheritDoc} */
public void simpleValue(StringBuffer toAppendTo, Object value) {
SIMPLE_DATE.formatValue(toAppendTo, value);
}
-}
\ No newline at end of file
+}