Bug 208560 - Content assist does not work in special anonymous class
Summary: Content assist does not work in special anonymous class
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-02 10:09 EDT by Markus Keller CLA
Modified: 2009-08-05 02:44 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-11-02 10:09:28 EDT
I20071101-2000

Content assist does not work in the case below. I've reduced the example down to the smallest version I found to still exhibit the problem. When I press Ctrl+Space at the specified location, I don't get any proposal, and the window status line says "The import java.util.Collections is never used".


package org.eclipse.jdt.jeview.views;

import java.util.Collections;

public class JavaElementView  {
	private void makeActions() {
		new Runnable() {
			public void run() {
				setInput(Collections. /* <-- ContentAssist */);
			}
		};
		
		new Runnable() {
			public void run() {
			}
		};
		
		new Object[] {}.clone();
	}

	private void setInput(Object o) { }
}
Comment 1 Markus Keller CLA 2009-01-07 13:33:52 EST
Maybe the underlying issue is the same as for bug 201762.
Comment 2 David Audel CLA 2009-06-29 09:45:31 EDT
I do not reproduce the problem with 3.5 +jdcore head.

I close this bug as WORKSFORME.
Comment 3 Dani Megert CLA 2009-06-29 10:32:19 EDT
>I do not reproduce the problem with 3.5 +jdcore head.
So Markus was probably right (bug 201762 just got fixed).
Comment 4 Ayushman Jain CLA 2009-08-05 02:42:58 EDT
Verified for 3.6M1 using build I20090802-2000