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

JumpableGenerator.rngs() documentation refers to wrong method

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      No net effect.
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      Letter 's' missing from documentation.

      Problem

      The method should be jumps and not 'jump`.

      Solution

      Correct spelling.

      Specification

      diff --git a/src/java.base/share/classes/java/util/random/RandomGenerator.java b/src/java.base/share/classes/java/util/random/RandomGenerator.java
      index 9feff713192..a5e20e55161 100644
      --- a/src/java.base/share/classes/java/util/random/RandomGenerator.java
      +++ b/src/java.base/share/classes/java/util/random/RandomGenerator.java
      @@ -1196,7 +1196,7 @@ public interface RandomGenerator {
                *
                * @return a stream of objects that implement the {@link RandomGenerator} interface
                *
      -         * @implSpec The default implementation calls {@link JumpableGenerator#jump jump}().
      +         * @implSpec The default implementation calls {@link JumpableGenerator#jumps jumps}().
                */
               default Stream<RandomGenerator> rngs() {
                   return this.jumps();

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gls Guy Steele
              Reporter:
              webbuggrp Webbug Group
              Reviewed By:
              Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: