<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Ben,</p>
    <p>Can you elaborate on the issue you had with writing a minimal
      test case?</p>
    <p>thanks,</p>
    <p>Chris<br>
    </p>
    <div class="moz-cite-prefix">On 7/1/23 5:00 PM, Ben Berman wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CADS7o=7qbiNoRx6i3rmcTx69ErzXBy9Ry1VKavON66HrTX179g@mail.gmail.com">
      
      <div dir="ltr">
        <div>
          <div dir="ltr">
            <div>I did not succeed in writing a minimal test case. It
              feels like human fuzzing. Surely there is a better way.</div>
            <div><br>
            </div>
            <div>-Ben</div>
          </div>
        </div>
      </div>
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, Jun 29, 2023 at
            2:47 PM Chris Plummer <<a href="mailto:chris.plummer@oracle.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">chris.plummer@oracle.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Writing
            a test case in jtreg would be very helpful. <br>
            test/jdk/com/sun/jdi/BreakpointTest.java would be a good
            starting point <br>
            for a new test. Note however this might be an IDE
            interaction issue, and <br>
            you might not be successful in writing a jtreg test case the
            reproduces <br>
            the problem. But that in itself would be useful to know.<br>
            <br>
            Chris<br>
            <br>
            On 6/29/23 2:23 PM, Ben Berman wrote:<br>
            > Investigating an issue in both IntelliJ and Eclipse
            debuggers led to <br>
            > this bug: I can't break inside an anonymous class
            method of the form<br>
            ><br>
            > ```<br>
            > new Object() {<br>
            >   void test() {<br>
            >     System.out.println("breakpoint here does not
            work");<br>
            >   }<br>
            > }.test();<br>
            > ```<br>
            ><br>
            > due to a buggy interaction between JDWP and virtual
            threads. The <br>
            > console statement in the example above does indeed
            print, i.e. it is <br>
            > executed.<br>
            ><br>
            > What would the next steps be to help with investigating
            and resolving <br>
            > this issue?<br>
            ><br>
            > <a href="https://urldefense.com/v3/__https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=*0A*0AIU-231.9161.38,*20JRE*2017.0.7*2B10-b829.16x64*20JetBrains*20s.r.o__;JSUlJSUlJQ!!ACWV5N9M2RV99hQ!OMCGPkJwf-_phbiidESZklozXM_koH4yX6A25RjxKBh46-xbKaaitZObn6ju83CEpkr0xaSQbrdOCVQIdCLbOAUaC7R7bQ$" rel="noreferrer" target="_blank" moz-do-not-send="true">https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=%0A%0AIU-231.9161.38,%20JRE%2017.0.7%2B10-b829.16x64%20JetBrains%20s.r.o</a>
            <br>
            > <<a href="https://urldefense.com/v3/__https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=*0A*0AIU-231.9161.38,*20JRE*2017.0.7*2B10-b829.16x64*20JetBrains*20s.r.o__;JSUlJSUlJQ!!ACWV5N9M2RV99hQ!OMCGPkJwf-_phbiidESZklozXM_koH4yX6A25RjxKBh46-xbKaaitZObn6ju83CEpkr0xaSQbrdOCVQIdCLbOAUaC7R7bQ$" rel="noreferrer" target="_blank" moz-do-not-send="true">https://youtrack.jetbrains.com/issue/IDEA-324002/IntelliJ-debugger-doesnt-break-nor-does-Eclipse-in-a-virtual-threads-project-inside-anonymous-class-methods-reproduction?clearDraft=true&description=%0A%0AIU-231.9161.38,%20JRE%2017.0.7%2B10-b829.16x64%20JetBrains%20s.r.o</a>>.,%20OS%20Mac%20OS%20X(aarch64)%20v13.4,%20screens%203456.0x2234.0;%20Retina<br>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>