https://issues.apache.org/bugzilla/show_bug.cgi?id=47532
Summary: HSSFCellStyle.cloneStyleFrom ALWAYS throws an
IllegalArgumentException
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Decompiled from org.apache.poi.hssf.usermodel.HSSFCellStyle
/* */ public void cloneStyleFrom(CellStyle source)
/* */ {
/* 1004 */ if (source instanceof HSSFCellStyle)
/* 1005 */ cloneStyleFrom((HSSFCellStyle)source);
/* */
/* 1007 */ throw new IllegalArgumentException("Can only clone from one
HSSFCellStyle to another, not between HSSFCellStyle and XSSFCellStyle");
/* */ }
/* */
The illegal argument exception is always thrown, even if the style is
successfully cloned. I think you're missing an 'else'...
--
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]