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

AbstractMethodError when evaluating a private method in an interface via debugger

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b143

      Description

      This is a method invocation issue on debugger backend in JDK 9.
      Method invocation of a private method declared in an interface gives AbstractMethodError.
      The issue can be reproduced via the attached test case. Unzip the project and run it via:
      /opt/java/jdk1.9.0/bin/java -classpath .../AbstractMethodErrorTest/build/classes abstractmethoderrortest.AbstractMethodErrorTest
      After
      Breakpoint hit at abstractmethoderrortest.App:31
      it throws:
      com.sun.jdi.InvocationException: Exception occurred in target VM
      at com.sun.tools.jdi.ObjectReferenceImpl.invokeMethod(ObjectReferenceImpl.java:436)
      at abstractmethoderrortest.EventThread.testMethodInvoke(EventThread.java:362)
      at abstractmethoderrortest.EventThread.access$200(EventThread.java:57)
      at abstractmethoderrortest.EventThread$ThreadTrace.breakpointEvent(EventThread.java:321)
      at abstractmethoderrortest.EventThread.breakpointEvent(EventThread.java:474)
      at abstractmethoderrortest.EventThread.handleEvent(EventThread.java:414)
      at abstractmethoderrortest.EventThread.run(EventThread.java:121)
      Exception: instance of java.lang.AbstractMethodError(id=157)

      The method invocation is performed in EventThread.testMethodInvoke().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dholmes David Holmes
                Reporter:
                mentlich Martin Entlicher
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: