https://bz.apache.org/bugzilla/show_bug.cgi?id=57838
Bug ID: 57838
Summary: Deleting rows in a sheet with comments does not delete
comments.
Product: POI
Version: 3.12-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32668
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32668&action=edit
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.
--
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]