Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 277805

Summary: [recovery] statements recovery does not jump over anonymous type correctly
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description David Audel CLA 2009-05-26 04:01:33 EDT
From bug 274898.

public class Test {

        public Test() {

                final anClass labelModel =
                        new new SomeOtherClass() {

                };

        }
}

In this case the statements recovery does not jump over anonymous correctly when the anonymous contains some syntax errors in the header.

The 'normal' recovery consider that the anonymous start at the second 'new' and the 'statements' recovery consider that the anonymous start at the first 'new'.

So when the statements recovery jump over type created by the 'normal' recovery then is jump from the from position.
Comment 1 Eclipse Genie CLA 2020-04-01 14:00:32 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.