https://bz.apache.org/bugzilla/show_bug.cgi?id=62828
Bug ID: 62828
Summary: CellReference(Cell) ctor does not initialize sheetName
Product: POI
Version: 4.0.0-FINAL
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: SS Common
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Calling the constructor new CellReference(cell) does not initialize the sheet
name. When the unit test code below is run, the following is written to
System.out:
goodCellRef='Ctor test'!$A$1
badCellRef=A1
Unit test code follows:
private static void cellReferenceCtorTest(XSSFWorkbook workbook) {
final XSSFSheet sheet = workbook.createSheet("Ctor test");
final String sheetName = sheet.getSheetName();
final XSSFRow row = sheet.createRow(0);
final XSSFCell cell = row.createCell(0);
final CellReference goodCellRef = new CellReference(sheetName,
cell.getRowIndex(), cell.getColumnIndex(), true,
true);
final CellReference badCellRef = new CellReference(cell);
System.out.println(String.format("goodCellRef=%s",
goodCellRef.formatAsString()));
System.out.println(String.format("badCellRef=%s",
badCellRef.formatAsString()));
}
--
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]