https://issues.apache.org/bugzilla/show_bug.cgi?id=48284

           Summary: [PATCH] Raised visibility of FormulaParseException to
                    catch it outside the POI internal.
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24614)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24614)
Fix.

There is simple example when we set wrong formula and get
FormulaParseException.

public class Test {
    public static void main(String[] args) throws Exception{
        HSSFWorkbook wb = new HSSFWorkbook();
        Sheet sheet = wb.createSheet();
        Row row = sheet.createRow(0);
        Cell cell = row.createCell(0);
        cell.setCellFormula("Sasd(1)");
    }
}

But we cant catch it because its visibility is package. We can't catch this
exception outside the POI internal.

Visibility is raised in patch.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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