JDK-8073927 can be fixed now thanks to the introduction of `forRemoval` in Java SE 9

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: 26
    • Component/s: core-libs

      A DESCRIPTION OF THE PROBLEM :
      Issue JDK-8073927 was reported against Java SE 8. At the time,`@Deprecated` did not have the `forRemoval` attribute yet. So while the issue was acknowledged, it was closed as "won't fix", simply because there was no way to be able to eventually remove the wrong method.

      Now that we have `forRemoval`, fixing this issue has become trivial:
      * in a first step (probably JDK 27), introduce `getNanos` and mark `getNano` as deprecated for removal, pointing to `getNanos` in its deprecation text
      * in a second step (probably JDK 30), remove `getNano`

            Assignee:
            Naoto Sato
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: