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

Constants for the Duration MIN/MAX values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None
    • generic
    • generic

      The suggestion is to add constants for Duration.MAX equivalent to `Duration.ofSeconds(Long.MAX_VALUE, 999_999_999)'
      Suggested in this thread: https://mail.openjdk.org/pipermail/core-libs-dev/2025-September/151098.html
      Read all of the thread; there some reservations about use cases.

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

              Created:
              Updated: