java.time.Instant.getEpochSeconds() javadocs still has a typo

Roger Riggs Roger.Riggs at Oracle.com
Thu Feb 1 21:20:53 UTC 2018


Hi,

Filed: 8196609 Improve javadoc for java.time.Instant.getEpochSecond 
<https://bugs.openjdk.java.net/browse/JDK-8196609>

Thanks, Roger

On 2/1/2018 3:46 PM, Kurt Alfred Kluever wrote:
> Hey folks,
>
> I had a quick question about the javadocs of this method. It looks like the
> `getNanosOfSecond` -> `getNano` mistake was fixed
> <https://bugs.openjdk.java.net/browse/JDK-8167166>, but the Java9 docs
> still claim that `getNano()` returns "the nanosecond part of the day"
> <https://docs.oracle.com/javase/9/docs/api/java/time/Instant.html#getEpochSecond-->
> .
>
> It should be "the nanosecond part of the *second*".
>
> (Apologies if this isn't the correct way to report things like this...)
>



More information about the core-libs-dev mailing list