[threeten-dev] It looks a bug for ChronoUnit.DAYS.addTo(LocalTime)
Patrick Zhang
patrick.zhang at oracle.com
Thu May 9 22:58:29 PDT 2013
Hi Team,
See attached simple code, it does not throw exception but print strange
output...
===========
gtee at jsn-gtwy-1: ~ $ $JAVA_HOME/bin/java Test1
true
false
true
true
01:02:03.000000400
01:02:03.000000400
===========
I do not think it is correct.
* DAYS.isSupportedBy(LocalTime) should return false since
DAYS.isTimeUnit() return false.
* DAYS.addTo(LocalTime) should throw exception nor returning one
unchanged value.
Regards
Patrick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test1.java
Url: http://mail.openjdk.java.net/pipermail/threeten-dev/attachments/20130510/e538bba0/Test1.java
More information about the threeten-dev
mailing list