Skip to content

Poi bug 61532 & 61148#1645

Merged
tonyqus merged 7 commits into
nissl-lab:masterfrom
antony-liu:poi/v4.0-patch2
Oct 13, 2025
Merged

Poi bug 61532 & 61148#1645
tonyqus merged 7 commits into
nissl-lab:masterfrom
antony-liu:poi/v4.0-patch2

Conversation

@antony-liu
Copy link
Copy Markdown
Collaborator

Main changes:

  • Change getCachedFormulaResultType to return CellType
  • While working on bug 61148 I found that getCellType() and setCellErrorValue() in SXSSFCell are doing different things than the ones in XSSFCell
  • 60805 (partial) -- remove/suppress println in tests
  • Bug 61148: Fix calculating formula value, unfortunately we currently need to set the value twice
  • Add test to verify that bug 61532 is fixed as far as I see via the changes for bug 61148.

…rValue() in SXSSFCell are doing different things than the ones in XSSFCell, tried to fix this by mimicking functionality of XSSF in SXSSF as well.
…need to set the value twice

Also rework related tests to run more of the tests for HSSF, XSSF and SXSSF
@tonyqus tonyqus added this to the NPOI 2.7.6 milestone Oct 7, 2025
[Test]
public override void TestUpdateCachedFormulaResultFromErrorToNumber_bug46479()
{
Assume.That(false, "This test is disabled because it fails for SXSSF because " +
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's going on with Bug46479 test case?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just ported from POI, which states that this test should be disabled. The test case will not fail if removing it from sub-class, and retaining it is only for consistency with POI.


[Test]
public void TestMultisheetFormulaEval()
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a few existing test cases are removed from TestHSSFCell. May I ask Why?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These test cases were moved to base class `BaseTestFormulaEvaluator, adding tests for the three HSSF, XSSF, SXSSF FormulaEvaluation test classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants