We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the for block has an increment statement, the state of the variables inside the block are recorded, but not their name.
For example in the following case the name of the variable j is not recorded:
47| @Test 48| public void for_test() throws Exception { 49| for (int i = 0; i < 10; i++) { // i=0 50| int j = i * 2; // 0 51|* fail(); // AssertionError 52| } 53| }
But with an empty increment statementthe recording works fine:
47| @Test 48| public void for_test() throws Exception { 49| for (int i = 0; i < 10;) { // i=0 50| int j = i * 2; // j=0 51|* fail(); // AssertionError 52| } 53| }
The text was updated successfully, but these errors were encountered:
Turns out, sometimes the end label of a variable is for an earlier line number than the start label. Fixed scope calculation to handle this case.
Sorry, something went wrong.
Fix issue #17
0668bb6
sometimes the end label of a variable is for an earlier line number than the start label. Fixed scope calculation to handle this case.
No branches or pull requests
If the for block has an increment statement, the state of the variables inside the block are recorded, but not their name.
For example in the following case the name of the variable j is not recorded:
But with an empty increment statementthe recording works fine:
The text was updated successfully, but these errors were encountered: