I am calling this operation with a textual body.
Inside the body, first line is :
This line is not added when the code is actually generated.
Looking at the TreeMaker implementation, it seems that this bug would occurs in any Method body generation
based on text.
I tried creating a Block, I run into the same problem. Here is the code I use. If the Identifier is something
else than super, it works well...
IdentifierTree toto = maker.Identifier("super");// NOI18N
LiteralTree mxbean = maker.Literal(Boolean.TRUE);
List<ExpressionTree> ps = new ArrayList<ExpressionTree>(1);
MethodInvocationTree printlnInvokation =
ExpressionStatementTree t2 = maker.ExpressionStatement(printlnInvokation);
This sounds very much like issue #122377.
*** This issue has been marked as a duplicate of 122377 ***