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

JDI spec: methods which throw NullPointerException on null param not documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.1, 1.4.0
    • core-svc
    • None
    • generic, sparc
    • generic, solaris_7

      When passed null instead of a Object value many JDI methods will throw
      NullPointerException. The spec does not declare these NullPointerExceptions.

      A few of many such cases:

                StackFrame.getValue(LocalVariable variable)
                StackFrame.getValues(java.util.List variables)

                Argument.isValid(null)
                BooleanArgument.isValid(null)
                StringArgument.isValid(null)



      Name: elR10090 Date: 04/28/2001


      This bug causes failure of the following testbase_nsk tests:

          nsk/jdi/Argument/isValid/isvalid002
          nsk/jdi/Argument/setValue/setvalue001
          nsk/jdi/BooleanArgument/isValid/isvalid002

      Such record containing full test names allows to automatically
      generate the following list of known test failures (we maintain
      it updated every working day):

          /net/sqesvr.eng/export/vsn/VM/testbase/nsk_stuff/buglist_nsk/nsk.knownbugs

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

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: