https://issues.apache.org/bugzilla/show_bug.cgi?id=47794
Summary: unreasonable code in
org.apache.poi.ss.usermodel.DateUtil
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2009-09-07 11:38:38 PDT ---
in org.apache.poi.ss.usermodel.DateUtil.daysInPriorYears() you can find the
code
if ((!use1904windowing && yr < 1900) || (use1904windowing && yr < 1900)) {
throw new IllegalArgumentException("'year' must be 1900 or greater");
}
This does not make sense for me, i assume the secong 1900 should be 1904 or
otherwise the evaluation of use1904windowing makes no sense.
--
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]