RFR:JDK-8031085:DateTimeFormatter won't parse dates with custom format "yyyyMMddHHmmssSSS"

nadeesh tv nadeesh.tv at oracle.com
Wed Apr 13 20:46:58 UTC 2016


HI all,

BUG ID : https://bugs.openjdk.java.net/browse/JDK-8031085

Webrev : http://cr.openjdk.java.net/~ntv/8031085/webrev.00/

Issue - Fractional parts of seconds do not participate in the protocol 
for adjacent value parsing

Solution - Changed the FractionPrinterParser to subclass of 
NumberPrinterParser to make it participate in adjacent value parsing

  2 existing test cases 
TCKDateTimeFormatterBuilder.test_adjacent_lenient_fractionFollows_0digit 
and test_adjacent_lenient_fractionFollows_2digit were failing. Changed 
them accordingly.

-- 
Thanks and Regards,
Nadeesh TV




More information about the core-libs-dev mailing list