Bug 38838 - SyntaxError- unoptimal syntax error message
Summary: SyntaxError- unoptimal syntax error message
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-12 11:02 EDT by Philipe Mulet CLA
Modified: 2003-07-16 05:55 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 Philipe Mulet CLA 2003-06-12 11:02:08 EDT
Build 3.0-M1

Either with diagnose parser or old syntax message, the following syntax error 
message is suboptimal:

class X {
  public abstract accept();
}

It should not tell that 'abstract method do not specify a body'
Comment 1 Philipe Mulet CLA 2003-06-17 08:35:46 EDT
Offending method is parsed as invalid constructor which forgot to set the 
AccSemicolonBody flag.

Also need to change the recovery mode accordingly.
Comment 2 Philipe Mulet CLA 2003-06-17 08:36:08 EDT
Fixed, regression test added.
Comment 3 David Audel CLA 2003-07-16 05:55:16 EDT
Verified.