DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9419>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9419

FormulaParser fails when formula starts with an AttrPtg with isSpace()=true

           Summary: FormulaParser fails when formula starts with an AttrPtg
                    with isSpace()=true
           Product: POI
           Version: 1.5
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


A cell starting with '=<blank> ...' results in a stack underflow at 
toFormulaString:

                  for (int j=0;j<numOperands;j++) {
                      operands[numOperands-j-1] = (String) stack.pop(); //TODO: 
catch stack underflow and throw parse exception. 

Excel allows to have a Ptg with index=0 of type OperationPtg (an AttrPtg which 
is a blank). These OperationPtgs do not have arguments.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to