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

(cs) Charset.forName() throws inaccurate/inappropriate exception when null is the charset name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs
    • b51
    • generic
    • generic

      (cs) Charset.forName() current throws IllegalArgumentException (which is not documented) when null is the charset name passed in, a NullPointerException is
      more appropriate (by convention) in this situation.
      ###@###.### 2005-2-12 00:35:14 GMT

            sherman Xueming Shen
            sherman Xueming Shen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: