pjfanning opened a new pull request, #1259: URL: https://github.com/apache/poi/pull/1259
When no `FormulaEvaluator` is supplied, `DataFormatter` now returns the cached value of a formula cell (when one is available) instead of the formula text. This behaviour has been available since POI 5.2.0 via `setUseCachedValuesForFormulaCells(true)`; this makes it the default in POI 6.0.0. Callers who want the POI 5.x behaviour can restore it with `setUseCachedValuesForFormulaCells(false)`. - flipped the field default and documented the 6.0.0 change on the setter, getter and `formatCellValue(Cell)` javadoc - added a 6.0.0 summary item and a `breaks-compatibility` action entry to `changes.xml` - updated the affected tests so each still exercises both settings (`TestDataFormatter`, `TestHSSFDataFormatter`, `TestXSSFDataFormat`) `:poi:test`, `:poi-ooxml:test` and `:poi-scratchpad:test` pass locally, apart from three column-autosize tests that fail identically on an unmodified trunk here (font metrics on this machine; the cells involved are not formula cells). 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
