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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.3.1, 1.4.0
    • Component/s: 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

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: