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

(spec) System.{load, loadLibrary, mapLibraryName} throw NPE when passed null

XMLWordPrintable

    • b51
    • generic
    • generic



      Name: viR10068 Date: 04/23/2004


      The spec says nothing about null parameters for the methods:
      java.lang.System.load(String)
      java.lang.System.loadLibrary(String libname)
      java.lang.System.mapLibraryName(String libname)

      But the RI (for example, jdk1.5.0-b47) throws java.lang.NullPointerException
      when calling java.lang.System.load(null).

      This behavior should be specified or RI should be fixed.

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

            iris Iris Clark
            vivsunw Viv Viv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: