https://bz.apache.org/bugzilla/show_bug.cgi?id=58975

--- Comment #3 from [email protected] ---
(In reply to Javen O'Neal from comment #2)
> Excel limits functions to 255 arguments [1]
> 
> > Calculation specifications and limits
> > Feature                   Maximum limit
> > Arguments in a function   255
> 
> POI XSSF should at least be able to support this many function arguments.
> 
> [1]
> https://support.office.com/en-us/article/Excel-specifications-and-limits-
> 1672b34d-7043-467e-8e27-269d656771c3
> 
> 128 sounds like a signed byte data type is being used when we should either
> be using an unsigned byte (unwrap a signed byte) or short.
> 
> Do you have time to look through the code to try to find where this might be
> happening?

At line 99 of FormulaRenderer, the object relating to the formula is cast as an
OperationPtg. At line 100, getNumberOfOperands() is called on it. Examining the
type hierarchy, getNumberOfOperands() is abstract in OperationPtg, and the only
subclass that implements it that doesn't return a constant is
AbstractFunctionPtg, which returns _numberOfArgs, a private byte. The
constructor sets _numberOfArgs on creation by casting an int argument nParams
as a byte.

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

Reply via email to