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

StringTokenizer(String str, String delim) null parameter handling not specified

XMLWordPrintable

    • sparc
    • solaris_2.5



      Name: saC57035 Date: 04/26/99



      Specification is not clear about handling null parameter in constructors
      StringTokenizer(String str, String delim) and
      StringTokenizer(String str, String delim, boolean returnTokens).

      In jdk1.2.2 StringTokenizer((String)null, "") throws NullPointerException
      and StringTokenizer("", (String)null) goes without any exception.
      If such behavour is valid it should be reflected in specification

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

            shommel Scott Hommel (Inactive)
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: