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

Incorrect use of Objects.nonNull

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Resolved In Build:
      b19

      Description

      Several JFR classes incorrectly use Objects.nonNull where Objects.requireNonNull is intended.

      jdk.jfr.internal.consumer.AbstractEventStream#setStartTime
      jdk.jfr.consumer.EventStream#openRepository(java.nio.file.Path)
      jdk.jfr.Recording#setFlushInterval

      Ref: https://github.com/openjdk/jdk/pull/2914#issuecomment-795853969

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              egahlin Erik Gahlin
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: