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

AbstractMethodError when evaluating a private method in an interface via debugger

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 9
    • 9
    • hotspot
    • None
    • 9
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: