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

Popping a stack frame after exception breakpoint sets last method param to exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 7u80, 8, 9
    • hotspot
    • JDK 1.8.0

    • b104
    • b66
    • generic
    • generic

    Backports

      Description

        See https://netbeans.org/bugzilla/show_bug.cgi?id=251569

        Use the attached class to reproduce the bug.

        Run the class under debugger:
        $ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:37535 -classpath ... exceptionbug.ExceptionBug

        Then attach jdb:
        $ jdb -attach localhost:37535

        main[1] cont
        >
        Exception occurred: java.lang.UnsupportedOperationException (uncaught)"thread=main", exceptionbug.ExceptionBug.criticalMethod(), line=26 bci=48

        main[1] pop
        main[1] step
        >
        Step completed: "thread=main", exceptionbug.ExceptionBug.criticalMethod(), line=20 bci=0

        main[1] print importantString
         importantString = "java.lang.UnsupportedOperationException: Kaboom!"

        Attachments

          Issue Links

            Activity

              People

                sspitsyn Serguei Spitsyn
                mentlich Martin Entlicher
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: