DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41372>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41372 Summary: DateLayoutTest fails if default Locale is not en_US Product: Log4j Version: 1.2 Platform: Other OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Layout AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Although the tests on DateTimeFormat are marked as deprecated, they are still active and fail if the Locale is not set to Locale.US This causes the whole test build to fail. PROOF: (from tests/src/org/apache/log4j/helpers/DateLayoutTest.java) /** * Tests DateTimeDateFormat class. * @deprecated since DateTimeDateFormat is deprecated */ public void testDateTimeFormat() { DateFormat format = new DateTimeDateFormat(); Calendar calendar = Calendar.getInstance(); calendar.clear(); calendar.set(1970, 0, 1, 0, 0, 0); String actual = format.format(calendar.getTime()); assertEquals("01 Jan 1970 00:00:00,000", actual); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
