Bug 56398 - AST cannot recognize the empty statement in the class
Summary: AST cannot recognize the empty statement in the class
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-26 13:51 EST by Kelvin CLA
Modified: 2004-05-18 13:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelvin CLA 2004-03-26 13:51:23 EST
test case

public class Test {

    ;  // <-- cannot recongize this statement.
}
Comment 1 Olivier Thomann CLA 2004-03-30 16:12:23 EST
Jim, are we supposed to expose these nodes?
Comment 2 Jim des Rivieres CLA 2004-03-30 19:15:59 EST
Indeed, extra semicolons in class body declarations are ignored when we build 
the AST. These are syntactic "noise" of no semantic significance. We have seen 
no usecases that would suggest ignoring them is not the best approach.
Comment 3 Philipe Mulet CLA 2004-04-13 05:49:32 EDT
No action planned.