You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/03/01 04:29:29 UTC
[Bug 54625] User defined functions added to static variable
https://issues.apache.org/bugzilla/show_bug.cgi?id=54625
stuart <st...@ibboost.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from stuart <st...@ibboost.com> ---
If anybody needs it, here is the workaround that I use
public class POIWorkbookFactory {
public static Workbook create(InputStream inp) throws Exception {
Workbook workbook = WorkbookFactory.create(inp);
if (workbook instanceof HSSFWorkbook) {
Field field = HSSFWorkbook.class.getDeclaredField("_udfFinder");
field.setAccessible(true);
field.set(workbook, new IndexedUDFFinder(UDFFinder.DEFAULT));
}
return workbook;
}
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org