poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53494] CellFormat throws NPE for date formats with locale codes
Date Mon, 02 Jul 2012 23:52:57 GMT

Trejkaz (pen name) <trejkaz@trypticon.org> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW

--- Comment #6 from Trejkaz (pen name) <trejkaz@trypticon.org> ---
    public void testCellFormatDateLocales() throws Exception
        CellFormat englishFormat = CellFormat.getInstance("[$-409]mmmm dd yyyy 
h:mm AM/PM");
is(equalTo("November 27 1973  11:28 AM")));

        CellFormat chineseFormat = CellFormat.getInstance("[$-804]mmmm dd yyyy 
h:mm AM/PM");
is(equalTo("\u5341\u4E00\u6708 27 1973  11:28 \u4E0A\u5348")));

This should be enough to reproduce it. I'm not 100% sure if the expected text
is exactly correct because I took this double value from the debugger while our
own test was running and floating point often ruins precision...

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

View raw message