poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15050] - [PATCH]HSSFWorkbook#cloneSheet() throws RuntimeException
Date Thu, 12 Dec 2002 10:51:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15050>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15050

[PATCH]HSSFWorkbook#cloneSheet() throws RuntimeException





------- Additional Comments From kamoshida.toshiaki@future.co.jp  2002-12-12 10:51 -------
When I set a breakpoint at org.apache.poi.hssf.record.Record#clone(),
and execute cloneSheet() by using "My" Excel file on a debuggar,I found there 
is no implementation of clone() at thease classes.If the target sheet has one 
of them,cloneSheet() will fail.

1. org.apache.poi.hssf.record.MargeCellsRecord
2. org.apache.poi.hssf.record.ColumnInfoRecord
3. org.apache.poi.hssf.record.BottomMarginRecord
4. org.apache.poi.hssf.record.LeftMarginRecord
5. org.apache.poi.hssf.record.RightMarginRecord
6. org.apache.poi.hssf.record.TopMarginRecord

Maybe some other classes are same,I don't know.

I feel,the testcase for this patch should use a sheet that has at least one 
instance of all each Record's subclass.But I can't create it easily. Please 
someone make it:)

Mime
View raw message