Community
Participate
Working Groups
if the following lines are inserted at the top of a method private void foo(String bar){ assert bar!=null : bar; System.out.println(bar); // try to set break point here } The breakpoint cannot be set at the System.out.println line. It appears before the close brace. private void foo(String bar){ assert bar!=null : bar; System.out.println(bar); } // break point gets set here.
Fixed. We were not specifying the compiler options when parsing the source to check the if breakpoint location is valid. In this case, the AST of the code of the method was no generated because the assert statement was seen as an error. For the breakpoint location verifier, the method was empty and the breakpoint was set on the last line of the block. Changes in BreakpointLocationVerifierJob#run()
Please verify, Darin W.
Thanks for taking a look at it so quickly.
Verified.