Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326377 - [content assist] Content assist for abstract class instantiation adds semicolon at wrong place
Summary: [content assist] Content assist for abstract class instantiation adds semicol...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M3   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 03:30 EDT by Benno Baumgartner CLA
Modified: 2010-09-28 10:43 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 Benno Baumgartner CLA 2010-09-28 03:30:53 EDT
I20100915-2024

Given:
public class E02 {

	public static abstract class Bar {
		public abstract void doBar();
	}

	public void foo() {
		addBar(new Bar|)
	}

	public void addBar(Bar bar) {

	}

}
1. Cursor where the '|' is
2. Control space
3. Select E02.Bar proposal
IS:
		addBar(new Bar() {
			
			@Override
			public void doBar() {
			}
		};)
Should:
		addBar(new Bar() {
			
			@Override
			public void doBar() {
			}
		});

I think this might be a regression: I've never had that before.
Comment 1 Dani Megert CLA 2010-09-28 10:43:25 EDT
>I think this might be a regression: I've never had that before.
Yep, that's right.

Fixed in HEAD (AnonymousTypeCompletionProposal and added test to CodeCompletionTest).
Available in builds >= N20100928-2000.