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

Java API docs mention a non-existent method getNanosOfSecond

    Details

    • Subcomponent:
    • Resolved In Build:
      b141

      Description

      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--

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: