Bug 39813 - [quick fix] syntax errors corrections (e.g. semicolon missing)
Summary: [quick fix] syntax errors corrections (e.g. semicolon missing)
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 13204 41134 54288 409740 421042 469457 (view as bug list)
Depends on: 477990
Blocks:
  Show dependency tree
 
Reported: 2003-07-09 11:26 EDT by Olivier Thomann CLA
Modified: 2015-11-19 12:00 EST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2003-07-09 11:26:53 EDT
Using 0703, try to compile the following code:
public class Compile { 

    public void foo() {

}

The compiler reports:
Syntax error, insert "}" to complete ClassBody

This is perfectly fine. If I use quickfix on this error, it suggests to surround
with different statement, instead of simply inserting a closing brace.
Comment 1 Martin Aeschlimann CLA 2004-03-11 05:08:35 EST
*** Bug 54288 has been marked as a duplicate of this bug. ***
Comment 2 Martin Aeschlimann CLA 2004-05-13 13:50:42 EDT
*** Bug 41134 has been marked as a duplicate of this bug. ***
Comment 3 Martin Aeschlimann CLA 2005-05-20 10:04:24 EDT
not for 3.1.

Even this bug sounds simple, but as we have no AST in these cases a lot of
parsing is involved. Mostly a missing bracket is detected much later in the
source, making the suggested correction look ridicolous.
Comment 4 Markus Keller CLA 2008-02-21 13:43:01 EST
Could look at this again now with statements recovery in the AST. Or just follow the advice to insert/delete a token and let the user find out whether it worked.
Comment 5 Eclipse Webmaster CLA 2009-08-30 02:42:24 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 6 Dani Megert CLA 2013-06-05 09:47:23 EDT
.
Comment 7 Dani Megert CLA 2013-06-05 09:47:46 EDT
*** Bug 409740 has been marked as a duplicate of this bug. ***
Comment 8 Dani Megert CLA 2013-11-06 06:42:31 EST
*** Bug 421042 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2013-11-06 06:44:07 EST
*** Bug 13204 has been marked as a duplicate of this bug. ***
Comment 10 Dani Megert CLA 2015-06-05 08:11:35 EDT
*** Bug 469457 has been marked as a duplicate of this bug. ***