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

Spec for Class.forName() not clear about null argument behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1
    • docs
    • generic
    • generic

      The specification for Class.forName( String fullName ) does not specify behavior for argument fullName when it is null. The "default" behavior for null arguments is to throw NullPointerException. The current behavior is to throw an IllegalArgumentException. Which behavior is intended?

            asommere Alan Sommerer (Inactive)
            kasmithsunw Kevin Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: