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

The javadoc of ZoneRules.previousTransition() is wrong

    Details

    • Subcomponent:
    • Resolved In Build:
      b152

      Description

      A DESCRIPTION OF THE PROBLEM :
      The documentation rightly says:

      > Gets the previous transition before the specified instant.

      But then it incorrectly says:

      > This returns details of the previous transition **after** the specified instant

      and

      > Returns: the previous transition **after** the specified instant



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expect it to say

      > This returns details of the previous transition before the specified instant

      and

      > Returns: the previous transition before the specified instant
      ACTUAL -
      > This returns details of the previous transition **after** the specified instant

      and

      > Returns: the previous transition **after** the specified instant

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

        Attachments

          Activity

            People

            • Assignee:
              aroy Abhijit Roy (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: