JDK-8169758 : Typo in Javadoc of java.time.Duration:parse
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.time
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-11-14
  • Updated: 2019-12-04
  • Resolved: 2016-12-02
Related Reports
Duplicate :  
Description
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-


Comments
It is a duplicate of JDK-8054978, Therefore, closing it as closed/Not an Issue.
02-12-2016

Verified the issue on JDK 8 and 9 and found the issue on both JDK. Link: JDK 8 : https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence- JDK 9 : http://download.java.net/java/jdk9/docs/api/java/time/Duration.html#parse-java.lang.CharSequence- =========================================================================================================== The number of days, hours and minutes must parse to an long. The number of seconds must parse to an long with optional fraction. ----------------------------------------------------------------------^-----------------------------------------------------------^-----------------------------------
16-11-2016