RFR: 8146389: java/util/logging/XMLFormatterDate.java fails during year switch
Daniel Fuchs
daniel.fuchs at oracle.com
Mon May 23 15:39:37 UTC 2016
Hi,
Please find below a patch for:
8146389: java/util/logging/XMLFormatterDate.java fails during
year switch
http://cr.openjdk.java.net/~dfuchs/webrev_8146389/webrev.00/index.html
https://bugs.openjdk.java.net/browse/JDK-8146389
When JDK-8072645 (java.util.logging should use java.time to get
more precise time stamps) the XML LogRecord content was changed to print
by default the date using the instant in UTC and avoid the penalty
to convert to the default time zone. A new logging property was
defined to revert to the old format if needed.
XMLFormatterDate.java then started to fail during the year switch,
because it was expecting the year to be in the local time zone, which
introduced a few hours lag compared to UTC.
This patch fixes the test to test the correctness of the year in both
new (UTC) and old (Local) date format.
best regards,
-- daniel
More information about the core-libs-dev
mailing list