Project: JDT
Bug 16051 DOM/AST: wrong position in if statement
Reported: 2002-05-15 12:15:46 | Status: resolved fixed

Build 20020514 + latest core In the following example the range for the if statement should be [125|33] but it is [125|33] package locals_in; public class A_test521 { public volatile boolean flag; public void foo() { int i= 5; /*]*/if (flag) i= 10;/*[*/ i--; } }

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/StructureSelectionAction/A_test29.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/actions/StructureSelectionActionTests.java