Community
Participate
Working Groups
20050131 In the following code, have a look at the source range of the SuperConstructorInvocation node: It does not include the expression ('x'). public F() { x.<String>super(); } Same problem for the ConstructorInvocation public F() { x.<String>this(); }
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