summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2011-11-08 06:38:22 (EST)
committerStephan Herrmann2012-01-14 09:10:40 (EST)
commitf3b2f1f8f0d88129c8aa72e8730a4785d51f4b84 (patch)
tree89977881e2e27222c03c70611693a73db8f3024b
parent8ad00e64e1caa6f90336b7a9594f5694c29ac893 (diff)
downloadorg.eclipse.objectteams-f3b2f1f8f0d88129c8aa72e8730a4785d51f4b84.zip
org.eclipse.objectteams-f3b2f1f8f0d88129c8aa72e8730a4785d51f4b84.tar.gz
org.eclipse.objectteams-f3b2f1f8f0d88129c8aa72e8730a4785d51f4b84.tar.bz2
Test & fix for Bug 345646 - [select] F3 not working for a specific signature-less callin binding
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/objectteams/otdt/internal/codeassist/SelectionOnMethodSpec.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/objectteams/otdt/internal/codeassist/SelectionOnMethodSpec.java b/org.eclipse.jdt.core/codeassist/org/eclipse/objectteams/otdt/internal/codeassist/SelectionOnMethodSpec.java
index 1094287..5f7720c 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/objectteams/otdt/internal/codeassist/SelectionOnMethodSpec.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/objectteams/otdt/internal/codeassist/SelectionOnMethodSpec.java
@@ -21,12 +21,10 @@
package org.eclipse.objectteams.otdt.internal.codeassist;
import org.eclipse.jdt.internal.codeassist.select.SelectionNodeFound;
-import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration;
import org.eclipse.jdt.internal.compiler.lookup.BlockScope;
import org.eclipse.jdt.internal.compiler.lookup.MethodBinding;
import org.eclipse.jdt.internal.compiler.lookup.ProblemReasons;
-import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
import org.eclipse.objectteams.otdt.internal.core.compiler.ast.MethodSpec;
import org.eclipse.objectteams.otdt.internal.core.compiler.lookup.CallinCalloutScope;
@@ -75,14 +73,6 @@ public class SelectionOnMethodSpec extends MethodSpec
// method is copy inherited: use the original binding:
if(binding.copyInheritanceSrc != null)
throw new SelectionNodeFound(binding.copyInheritanceSrc);
-
- //have to generate a new binding here!
- ReferenceBinding roleBinding = binding.declaringClass.roleModel.getBinding();
- //generate temporary invocation site (a fake field)
- FieldDeclaration fakeField = new FieldDeclaration("<fakeField>".toCharArray(), 0, 0); //$NON-NLS-1$
- MethodBinding newBinding =
- this.scope.findExactMethod(roleBinding, binding.selector, binding.parameters, fakeField);
- throw new SelectionNodeFound(newBinding);
}
//haebor}
}