https://issues.apache.org/bugzilla/show_bug.cgi?id=45682
Summary: HSSFWorkbook cloneSheet fails for sheets with
conditional formatting.
Product: POI
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
HSSFWorkbook cloneSheet fails for sheets containing conditional formattings.
Reproduced with 3.1-FINAL-20080629 as well as with latest devel from svn
(3.2-aplha1) 20080825. Seems to introduced with conditional formating changes,
as sheets are cloned correctly with 3.0.2-FINAL-20080204. Stack-trace from
latest SVN.
Exception in thread "main" java.lang.RuntimeException: The class
org.apache.poi.hssf.record.aggregates.CFRecordsAggregate needs to define a
clone method
at org.apache.poi.hssf.record.Record.clone(Record.java:135)
at
org.apache.poi.hssf.model.Sheet$RecordCloner.visitRecord(Sheet.java:355)
at
org.apache.poi.hssf.record.aggregates.ConditionalFormattingTable.visitContainedRecords(ConditionalFormattingTable.java:56)
at org.apache.poi.hssf.model.Sheet.cloneSheet(Sheet.java:371)
at
org.apache.poi.hssf.usermodel.HSSFSheet.cloneSheet(HSSFSheet.java:127)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.cloneSheet(HSSFWorkbook.java:672)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]