Summary: | AST: Wrong source ranges for superconstructorinv with type args | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Martin Aeschlimann
2005-01-31 12:28:15 EST
I will investigate. In the second case, x.<String>this(); note that there is no node corresponding to the 'x'. This is invalid. There is a problem reported for it, but the node doesn't appear in the tree. Now in the first case, x is part of the source range and it appears in the tree as the expression of the SuperConstructorInvocation node. Is this what you expect? In second case, the constructor invocation is now tagged as MALFORMED. Fixed and released in HEAD. Regression tests added in ASTConverter15Test.test0128 and test0129. You are right, the second example is bogos. Sorry for that! No problem. As long as we produce a tree, I wanted to let you know what you would get. In the second case, the constructor invocation is tagged as MALFORMED since it is not supposed to have a qualification. Hope this is good enough. Verified in I20050215-2300 |