From a764730b8add843192ecae83c8ac4bb52750fc84 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Jul 13 2012 23:05:21 +0000 Subject: Add patch to fix compilation with JDK 1.7 --- diff --git a/apache-poi-jdk17.patch b/apache-poi-jdk17.patch new file mode 100644 index 0000000..451e2ed --- /dev/null +++ b/apache-poi-jdk17.patch @@ -0,0 +1,19 @@ +diff -up poi-3.8/src/java/org/apache/poi/ss/format/CellDateFormatter.java.jdk17 poi-3.8/src/java/org/apache/poi/ss/format/CellDateFormatter.java +--- poi-3.8/src/java/org/apache/poi/ss/format/CellDateFormatter.java.jdk17 2012-03-17 07:19:44.000000000 -0600 ++++ poi-3.8/src/java/org/apache/poi/ss/format/CellDateFormatter.java 2012-07-13 16:17:24.360763553 -0600 +@@ -150,7 +150,7 @@ public class CellDateFormatter extends C + StringBuffer descBuf = CellFormatPart.parseFormat(format, + CellFormatType.DATE, partHandler); + partHandler.finish(descBuf); +- dateFmt = new SimpleDateFormat(descBuf.toString()); ++ dateFmt = new SimpleDateFormat(descBuf.toString().replaceAll("((y)(?!y))(? - 3.8-2 +- Add patch to fix compilation with JDK 1.7 + * Thu May 10 2012 Orion Poplawski - 3.8-1 - Update to 3.8 final - Add patch to fix CVE-2012-0213 (bugs 799078, 820788)