[Bug 62828] New: CellReference(Cell) ctor does not initialize sheetName

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 62828] New: CellReference(Cell) ctor does not initialize sheetName

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 62828] CellReference(Cell) ctor does not initialize sheetName

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62828

[hidden email] <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from [hidden email] <[hidden email]> ---
Fixed via r1850210. Thanks to David Gauntt for the report.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]