https://issues.apache.org/bugzilla/show_bug.cgi?id=46992
--- Comment #1 from Brian <[email protected]> 2009-04-28 14:56:54 PST --- I ran into this too. Looking at the source code for XSSFCellStyle, the method appears to be implemented as follows: public void cloneStyleFrom(CellStyle source) { if(source instanceof XSSFCellStyle) { this.cloneStyleFrom(source); } throw new IllegalArgumentException("Can only clone from one XSSFCellStyle to another, not between HSSFCellStyle and XSSFCellStyle"); } This causes an endless loop that in turn causes a stack overflow error. Looking at HSSFCellStyle, it looks like it should be casting it to XXSFCellStyle and passing it to a method "public void cloneStyleFrom(XSSFCellStyle source)" to do the actual copy. It looks like that method hasn't been implemented. I'm not sure if that's an oversight or if XSSFCellStyle copying is difficult to implement for some reason. If XSSFCellStyle copying can't be easily implemented for the next beta, I'd suggest that at the very least an UnsupportedOperationException or similar be thrown instead of going into an endless loop. -- 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]
