Bug 49415

Summary: workbook.cloneSheet() throws exception (BeginRecord does not implement clone())
Product: POI Reporter: Torsten <torsten.haase>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 3.6-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: xml file containing a chart. produces the described error.
[PATCH]

Description Torsten 2010-06-09 10:58:12 UTC
Created attachment 25567 [details]
xml file containing a chart. produces the described error.

cloneSheet() throws an exception when calling it on a worksheet containing a chart (see example)
Reason is, that many chart records do not overwrite clone so the base class (Record) throws this exception.
Comment 1 Torsten 2010-06-09 11:05:00 UTC
Created attachment 25568 [details]
[PATCH]


the attached ZIP contains the HSSF chart record classes including the missing clone() methods.
Comment 2 Nick Burch 2010-06-09 14:12:43 UTC
This was fixed in svn a little while ago - please test with a recent nightly / svn checkout, and re-open the bug if you discover another part of your problem remains

*** This bug has been marked as a duplicate of bug 49096 ***