|Summary:||Deleting rows in a sheet with comments does not delete comments.|
|Product:||POI||Reporter:||Balaji Venkatamohan <bvenkata>|
|Component:||XSSF||Assignee:||POI Developers List <dev>|
|Attachments:||Source folder of java test project with a Junit test class|
Description Balaji Venkatamohan 2015-04-21 01:19:55 UTC
Created attachment 32668 [details] Source folder of java test project with a Junit test class Using XssfSheet.removeRow(row0), only deletes cell values. If any cell in row0 contained comments, they are not deleted and are retained in the same cell address. This causes unpredictable behavior in the saved / modified excel file and opening this saved workbook may or may not open properly. Expected: When I remove a row from sheet, I expect all the cells along with its values and comments to be removed. Comments should not be left dangling. Attaching a simple java project's source folder with a Junit test class DeleteRowsWithComments.java . The excel sheet is also in the classpath /src/resources/deletewithcomments.xlsx. The POI and OOXML libs used for this project were built from revision r1674975 of POI source.