Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2076506 | 5.0 | Kohsuke Kawaguchi | P4 | Closed | Fixed | b30 |
Name: erR10175 Date: 10/29/2003
Documentation of the methods
public final long getTimeInMillis(Calendar startInstant)
public final long getTimeInMillis(Date startInstant)
in the description of class javax.xml.datatype.Duration does not explicitly specify
returned value if the duration is too long to be represented by a value of the returned
type.
Fields of duration may be much bigger than long type can represent, so for example
PT100000000000000000000S (1e20 seconds) is a valid duration, which cannot fit in to the
long type.
The bug is found in the javadoc of jdk1.5.0/beta/b25
======================================================================
Documentation of the methods
public final long getTimeInMillis(Calendar startInstant)
public final long getTimeInMillis(Date startInstant)
in the description of class javax.xml.datatype.Duration does not explicitly specify
returned value if the duration is too long to be represented by a value of the returned
type.
Fields of duration may be much bigger than long type can represent, so for example
PT100000000000000000000S (1e20 seconds) is a valid duration, which cannot fit in to the
long type.
The bug is found in the javadoc of jdk1.5.0/beta/b25
======================================================================
- backported by
-
JDK-2076506 Duration.getTimeInMillis: behaviour with very long duration is not specified
- Closed
- duplicates
-
JDK-4941654 method 'equals' does not work with very long durations
- Closed