Bug 65737 - Strange completion by code assist
Summary: Strange completion by code assist
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-04 11:49 EDT by Martin Aeschlimann CLA
Modified: 2004-06-11 09:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2004-06-04 11:49:51 EDT
20040603

- Create the following class in a project that has 'jdtcore.jar' and
'runtime.jar' on the class path
- invoke code assist after the 'ex' and choose 'exists' from 'ISourceReference'
- The result is
    type.this.exists()
  which doesn't make sense

I also wondered if it makes sense to have two 'exists' presented. As they have
the same signature, one would be enough

---
package p;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IType;


public abstract class A {
	private void run(IType type, IField[] preselected, boolean activatedFromEditor)
throws CoreException {
		type.ex
	}
}
Comment 1 David Audel CLA 2004-06-08 07:00:53 EDT
Fixed and test added
  CompletionTets#testCompletion2InterfacesWithSameMethod()
Comment 2 Olivier Thomann CLA 2004-06-11 09:42:08 EDT
Verified in 200406110010