java.time.Duration: method getNano must be renamed to getNanos

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 8u31
    • Component/s: core-libs
    • x86
    • windows_8

      FULL PRODUCT VERSION :
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.3.9600]

      A DESCRIPTION OF THE PROBLEM :
      First of all: please note that there is no subcategory for the java.time API on bugs.java.com, which is why I selected the incorrect subcategory java.util.

      In the Duration class, there are methods:

      getSeconds
      getNano
      withSeconds
      withNanos
      ...

      As you can see, the naming of the getNano method is inconsistent and should be getNanos.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            Assignee:
            Roger Riggs
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: