Bug 208560

Summary: Content assist does not work in special anonymous class
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, daniel_megert, jerome_lanneluc, srikanth_sankaran
Version: 3.4   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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