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

        Activity

        Hide
        psonal Pallavi Sonal added a comment -
        The issue exists in both JDK 8 and 9 Java API docs.
        JDK 8 - Fail
        JDK 9 - Fail

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

        There isn't a method getNanosOfSecond(). Should have been getNano().
        Show
        psonal Pallavi Sonal added a comment - The issue exists in both JDK 8 and 9 Java API docs. JDK 8 - Fail JDK 9 - Fail https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond-- There isn't a method getNanosOfSecond(). Should have been getNano().
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/103b120931a9
        User: rriggs
        Date: 2016-10-14 21:27:38 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/103b120931a9 User: rriggs Date: 2016-10-14 21:27:38 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/103b120931a9
        User: lana
        Date: 2016-10-19 19:44:45 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/103b120931a9 User: lana Date: 2016-10-19 19:44:45 +0000

          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: