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 2021/04/21 17:51:30 UTC
[Bug 65165] [DateValue] DATEVALUE should throw an
EvaluationException
https://bz.apache.org/bugzilla/show_bug.cgi?id=65165
--- Comment #1 from kuba.v <ja...@gmail.com> ---
The patch is needed, if the DateTimeException is not caught it stops evaluation
completely.
However I'm not sure that the ErrorEval.NUM_ERROR as suggested in the proposed
patch is the right error code to return. My excel (version 2010) returns
ErrorEval.VALUE_INVALID. Same for the case where the text argument is blank or
an empty string.
Also maybe the code can be made simple if we catch the DateTimeException in the
existing try block?
--
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