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

javadoc for java.util.StringTokenizer is not complete

XMLWordPrintable

    • b28
    • generic, sparc
    • generic, solaris_2.6
    • Verified



      Name: auR10023 Date: 05/30/2001


      Javadoc does not specify the behavior of java.util.StringTokenizer's
      methods and constructors if String's parameters is null.
      The behavior when null is passed in should be specified for following
      methods:

      public StringTokenizer(String str)

      public StringTokenizer(String str,
                             String delim,
                             boolean returnDelims)

      public StringTokenizer(String str,
                             String delim)

      public String nextToken(String delim)


      As it is documented in

      http://java.sun.com/j2se/javadoc/writingapispecs/index.html#method

      the spec for a method should always describe behavior in case null
      parameter is passed.

      for details.

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

            shommel Scott Hommel (Inactive)
            avusunw Avu Avu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: