From: Yegor Kozlov Date: Sat, 19 Jan 2008 14:27:02 +0000 (+0000) Subject: use JDK 1.4 compatible constructor for IllegalStateException X-Git-Tag: REL_3_0_3_BETA1~182 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=de3e7e7838d0b298c8e3059f45c9ee2b44413c6b;p=poi.git use JDK 1.4 compatible constructor for IllegalStateException git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@613395 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/record/DVRecord.java b/src/java/org/apache/poi/hssf/record/DVRecord.java index e5527d61f1..a7b68a1743 100644 --- a/src/java/org/apache/poi/hssf/record/DVRecord.java +++ b/src/java/org/apache/poi/hssf/record/DVRecord.java @@ -187,10 +187,13 @@ public class DVRecord extends Record this.field_not_used_2 = in.readShort(); //read sec formula data condition - // Not sure if this was needed or not... + //Not sure if this was needed or not... try { in.skip(this.field_size_sec_formula); - } catch(IOException e) { throw new IllegalStateException(e); } + } catch(IOException e) { + e.printStackTrace(); + throw new IllegalStateException(e.getMessage()); + } token_pos = 0; while (token_pos < this.field_size_sec_formula)