The test case that was failing was checking for(p1.getOffset() <= 20 && p1.getOffset() <= 29) instead of (p1.getOffset() >= 20 && p1.getOffset() <= 29). The description in the String is valid; the syntax error is in the line that starts at position 20. The compiler now has the correct line and column number that the DrJava UI uses to display where the error occurred and to position the cursor at when clicking on the error.
The test case that was failing was checking for
(p1.getOffset() <= 20 && p1.getOffset() <= 29) instead of (p1.getOffset() >= 20 && p1.getOffset() <= 29)
. The description in the String is valid; the syntax error is in the line that starts at position 20. The compiler now has the correct line and column number that the DrJava UI uses to display where the error occurred and to position the cursor at when clicking on the error.