Community
Participate
Working Groups
Eclipse 2.1 NaiveASTFlattener does not serialize try-finally statements correctly (it omits the "finally" keyword). Method visit(TryStatement node) should read: if (node.getFinally() != null) { +++ buffer.append("finally ");//$NON-NLS-1$ node.getFinally().accept(this); } Although this is an internal class, it is commonly copied and edited, and the copies may have the same bug. (e.g., org.eclipse.jdt.internal.corext.dom.ASTFlattener)
Reported bug 36815 org.eclipse.jdt.internal.corext.dom.ASTFlattener.
Fixed and released in HEAD.
Verified.