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

Debug agent cannot handle two StepRequests on the same thread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 24
    • core-svc
    • None

      If you execute the following code:

                  stepRequest1 = erm.createStepRequest(mainThread,
                                                      StepRequest.STEP_LINE,
                                                      StepRequest.STEP_OVER);
                  stepRequest2 = erm.createStepRequest(mainThread,
                                                      StepRequest.STEP_LINE,
                                                      StepRequest.STEP_OVER);
                  stepRequest1.enable();
                  stepRequest2.enable();

      You would expect that the event handler would receive two StepEvents, one for each request. That is the way other EventRequest works. It turns out you'll only receive one StepEvent, and it will be for the 2nd (last) StepRequest that is enabled.

      The 2nd issue is that if you disable either StepRequest, both of them get disabled.

            Unassigned Unassigned
            cjplummer Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: