Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 26-31
Link Here
|
26 |
import org.eclipse.jdt.internal.compiler.lookup.ExtraCompilerModifiers; |
26 |
import org.eclipse.jdt.internal.compiler.lookup.ExtraCompilerModifiers; |
27 |
import org.eclipse.jdt.internal.compiler.lookup.InvocationSite; |
27 |
import org.eclipse.jdt.internal.compiler.lookup.InvocationSite; |
28 |
import org.eclipse.jdt.internal.compiler.lookup.MethodBinding; |
28 |
import org.eclipse.jdt.internal.compiler.lookup.MethodBinding; |
|
|
29 |
import org.eclipse.jdt.internal.compiler.lookup.MissingTypeBinding; |
29 |
import org.eclipse.jdt.internal.compiler.lookup.ProblemMethodBinding; |
30 |
import org.eclipse.jdt.internal.compiler.lookup.ProblemMethodBinding; |
30 |
import org.eclipse.jdt.internal.compiler.lookup.ProblemReasons; |
31 |
import org.eclipse.jdt.internal.compiler.lookup.ProblemReasons; |
31 |
import org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding; |
32 |
import org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding; |
Lines 409-415
Link Here
|
409 |
return null; |
410 |
return null; |
410 |
} |
411 |
} |
411 |
} |
412 |
} |
412 |
scope.problemReporter().invalidMethod(this, this.binding); |
413 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=245007 avoid secondary errors in case of |
|
|
414 |
// missing super type for anonymous classes ... |
415 |
ReferenceBinding declaringClass = this.binding.declaringClass; |
416 |
boolean avoidSecondary = declaringClass != null && |
417 |
declaringClass.isAnonymousType() && |
418 |
declaringClass.superclass() instanceof MissingTypeBinding; |
419 |
if (!avoidSecondary) |
420 |
scope.problemReporter().invalidMethod(this, this.binding); |
413 |
MethodBinding closestMatch = ((ProblemMethodBinding)this.binding).closestMatch; |
421 |
MethodBinding closestMatch = ((ProblemMethodBinding)this.binding).closestMatch; |
414 |
switch (this.binding.problemId()) { |
422 |
switch (this.binding.problemId()) { |
415 |
case ProblemReasons.Ambiguous : |
423 |
case ProblemReasons.Ambiguous : |