Bug 118876 - [dom] TypeDeclaration nodes aren't flagged as MALFORMED
Summary: [dom] TypeDeclaration nodes aren't flagged as MALFORMED
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 12:15 EST by David Audel CLA
Modified: 2005-12-12 12:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2005-12-01 12:15:47 EST
build I20051123-1200

public class X extend {
}

If you build a DOM AST with this source code the CompilationUnit node is flag as MALFORMED and not the TypeDeclaration node.

This is probably caused by ASTSyntaxErrorPropagator because this class doesn't override the visit(TypeDeclaration) method.
Comment 1 Olivier Thomann CLA 2005-12-02 23:08:22 EST
Fixed and released in HEAD.
Regression test in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test0624
Comment 2 Frederic Fusier CLA 2005-12-12 12:13:29 EST
Verified for 3.2 M4 using build I20051212-0010