java.util.Random docs should be updated

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.2.2
    • Affects Version/s: 1.2.0
    • Component/s: docs
    • 1.2.2
    • sparc
    • solaris_2.5



      Name: mgC56079 Date: 05/15/98



      These are the problems with javadoc of jdk1.2beta4E:

      1. Javadoc says:
        "The algorithms implemented by class <tt>Random</tt> use three state
         variables, which are protected"
        These variables are private, not protected.

      2. JavaDoc for methods
         nextInt()
         nextLong()
         nextFloat()
         nextDouble()
         nextGaussian()
         incorrectly mention setSeed method:
         "The method setSeed is implemented by class Random as follows ... "
                     ^^^^^^^
      3. Spec for method nextBytes is incomplete:
          /**
           * Generates a user specified number of random bytes.
           *
           * @since JDK1.1
           */
          public void nextBytes(byte[] bytes)

         It should specify the exact behaviour.

      ======================================================================

            Assignee:
            Alan Sommerer (Inactive)
            Reporter:
            Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: