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

JDI: Document that the mirror of null is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0, 1.4.0
    • core-svc
    • None
    • beta
    • generic
    • generic
    • Not verified

      > I have a small question about the Value interfaces: what is the mirror
      > for "null" ?
      > For example, I have in the target:
      > String [] myArray() = null;
      >
      > I have myLocalVariable which mirrors 'myArray'. so
      > myLocalVariable.type() return an ArrayType.
      > What about StackFrame.getValue(myLocalVariable) ? Does it return a
      > VoidValue ? An ArrayReference ?

      This is an excellent question ie. this isn't documented.
      A major hole in the spec.

      The mirror of null is null.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: