Community
Participate
Working Groups
class A{ A{ super(); } } the call to super in not inside an ExpressionStatement (like any other method invocation) and it does not include the trailing semicolon it should not be a special case (same for ConstructorInvocation)
SuperConstructorInvocation and ConstructorInvocation are subclasses of Statement. Therefore they don't need to be wrapped in an ExpressionStatement. The bug is that the semi-colon is not included in the position, but not that it is not wrapped in an ExpressionStatement.
i got fooled by the javadoc - it should mention the semicolon too
We need to fix the javadoc as well. It should not state that this is an expression, but it is a statement.
As soon as the new javadoc is released, I release a fix for it.
Fixed and released in 2.1 stream.
Verified.
Regression test added (test0402).