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

Argument list returned by com.sun.tool.jdi.Method.arguments() method doesn't include the reference to the instance of the enclosing class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7, 8, 9, 10, 11
    • Fix Version/s: tbd_major
    • Component/s: core-svc
    • Labels:

      Description

      This is the follow-up issue to address the inconsistency found while fixing JDK-4462897.

      For the inner class the argument list returned by com.sun.tool.jdi.Method.arguments() method doesn't include the reference to the instance of the enclosing class. The implementation of this method calls JDWP.Method.VariableTableWithGeneric.process(vm, declaringType, ref) and the documentation for VariableTableWithGeneric class says that for instance methods the "this" reference is included in the table ("The variable table includes arguments and locals declared within the method. For instance methods, the "this" reference is included in the table."). It says nothing about the reference to the instance of the enclosing class when a method is a constructor of an inner class, however the expected behavior for this case is to have the reference to the instance of the enclosing class included in the returned arguments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dtitov Daniil Titov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: