Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167166

Java API docs mention a non-existent method getNanosOfSecond

XMLWordPrintable

    • b141

      A DESCRIPTION OF THE PROBLEM :
      There is such text on the page https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--

      "The nanosecond part of the day is returned by getNanosOfSecond."

      But the method getNanosOfSecond() does not present in that doc.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The nanosecond part of the second is returned by getNano.
      ACTUAL -
      The nanosecond part of the day is returned by getNanosOfSecond.

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--

            rriggs Roger Riggs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: