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

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

    XMLWordPrintable

Details

    • b03
    • generic
    • generic

    Backports

      Description

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


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: