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

@param/@return descriptions of ZoneRules#isDaylightSavings() are incorrect

XMLWordPrintable

    • b03
    • generic
    • generic

        A DESCRIPTION OF THE PROBLEM :
        Check the javadoc of ZoneRules#isDaylightSavings(): https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/zone/ZoneRules.html#isDaylightSavings(java.time.Instant) (also observed in JDK22)

        It @returns says:
        ```
        Returns:
        the standard offset, not null
        ```

        This appears to be copy pasted from ZoneRules#getStandardOffset() method and then overlooked afterwards.

        It needs to be modified to say something like as "true if the specified instant is in daylight savings".


              naoto Naoto Sato
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: