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

java.util.Random docs should be updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.2.0
    • 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.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: