aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/eventmodel
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2008-08-07 20:32:25 +0000
committerJosh Micich <josh@apache.org>2008-08-07 20:32:25 +0000
commit3889288070ca846f93e756c4992d9ab3562eb903 (patch)
treefb03c4996d3935b849adc51b1b3ac039fc47ec04 /src/testcases/org/apache/poi/hssf/eventmodel
parent5eaf4faae0f6892a77f3b2eb689aaba13e611f89 (diff)
downloadpoi-3889288070ca846f93e756c4992d9ab3562eb903.tar.gz
poi-3889288070ca846f93e756c4992d9ab3562eb903.zip
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
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/eventmodel')
-rw-r--r--src/testcases/org/apache/poi/hssf/eventmodel/TestEventRecordFactory.java2
1 files changed, 1 insertions, 1 deletions
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);