-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 8, 9
-
Component/s: core-libs
A DESCRIPTION OF THE PROBLEM :
I think there is a typo in the Javadoc of the parse method of java.time.Duration: a "a" should be used before "long" and not a "an".
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The number of days, hours and minutes must parse to a long.
ACTUAL -
The number of days, hours and minutes must parse to an long.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence-
I think there is a typo in the Javadoc of the parse method of java.time.Duration: a "a" should be used before "long" and not a "an".
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The number of days, hours and minutes must parse to a long.
ACTUAL -
The number of days, hours and minutes must parse to an long.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence-
- duplicates
-
JDK-8054978 java.time.Duration.parse() fails for negative duration with 0 seconds and nanos
-
- Resolved
-