Bug 124296 - Recovered ast nodes don't nest properly
Summary: Recovered ast nodes don't nest properly
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-18 10:03 EST by Markus Keller CLA
Modified: 2006-02-15 10:14 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2006-01-18 10:03:32 EST
HEAD

public class Try {
    private void m() {
        int var= 123
        System.out.println(var);
    }
}

The range of the VariableDeclarationFragment is "var= 12", but the range of its initializer is "123". The VariableDeclarationFragment should have range "var= 123"
Comment 1 David Audel CLA 2006-01-19 05:28:05 EST
Fixed and test add
  ASTConverterRecoveryTest#test0004()
Comment 2 Frederic Fusier CLA 2006-02-15 10:14:18 EST
Verified for 3.2 M5 using build I20060215-0010.