[Bug 65190] New: Wrong formatting when format starts with0#

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 65190] New: Wrong formatting when format starts with0#

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

            Bug ID: 65190
           Summary: Wrong formatting when format starts with0#
           Product: POI
           Version: 5.0.0-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

DataFormatter formatter = new HSSFDataFormatter(Locale.ENGLISH);

// Ok
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "0"));

// Ok
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "#"));

// Ok
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "#0"));

// Fails  expected:<1[233456789012]3> but was:<1[.23346E1]3>
Assert.assertEquals("12334567890123",
formatter.formatRawCellContents(12334567890123.0, 0, "0#"));

--
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]