From 3889288070ca846f93e756c4992d9ab3562eb903 Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Thu, 7 Aug 2008 20:32:25 +0000 Subject: Fix for bug 45582 - handle extra bytes after the EOFRecord git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@683706 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testcases/org/apache/poi/hssf/eventmodel') diff --git a/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java b/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java index c4a5ec84b3..88f620ca44 100644 --- a/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java +++ b/src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java @@ -63,7 +63,7 @@ public final class TestEventRecordFactory extends TestCase { bof.setVersion((short)0x06); bof.setHistoryBitMask(BOFRecord.HISTORY_MASK); - EOFRecord eof = new EOFRecord(); + EOFRecord eof = EOFRecord.instance; byte[] bytes = new byte[bof.getRecordSize() + eof.getRecordSize()]; int offset = 0; offset = bof.serialize(offset,bytes); -- cgit v1.2.3