Bug 36814 - NaiveASTFlattener does not serialize try-finally statements correctly
Summary: NaiveASTFlattener does not serialize try-finally statements correctly
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-23 16:04 EDT by Jim des Rivieres CLA
Modified: 2003-06-06 06:26 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-04-23 16:04:48 EDT
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)
Comment 1 Jim des Rivieres CLA 2003-04-23 16:07:40 EDT
Reported bug 36815 org.eclipse.jdt.internal.corext.dom.ASTFlattener.
Comment 2 Olivier Thomann CLA 2003-04-24 12:07:57 EDT
Fixed and released in HEAD.
Comment 3 David Audel CLA 2003-06-06 06:26:16 EDT
Verified.