Lines 27-32
Link Here
|
27 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.NestedTypeBinding; |
27 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.NestedTypeBinding; |
28 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ProblemMethodBinding; |
28 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ProblemMethodBinding; |
29 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ProblemReasons; |
29 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ProblemReasons; |
|
|
30 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ProblemReferenceBinding; |
30 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding; |
31 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.ReferenceBinding; |
31 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding; |
32 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding; |
32 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.SyntheticArgumentBinding; |
33 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.SyntheticArgumentBinding; |
Lines 68-74
Link Here
|
68 |
} |
69 |
} |
69 |
// record some dependency information for exception types |
70 |
// record some dependency information for exception types |
70 |
ReferenceBinding[] thrownExceptions; |
71 |
ReferenceBinding[] thrownExceptions; |
71 |
if (((thrownExceptions = this.binding.thrownExceptions).length) != 0) { |
72 |
if (this.binding != null && this.binding.thrownExceptions != null && (thrownExceptions = this.binding.thrownExceptions).length != 0) { |
72 |
// check exception handling |
73 |
// check exception handling |
73 |
flowContext.checkExceptionHandlers( |
74 |
flowContext.checkExceptionHandlers( |
74 |
thrownExceptions, |
75 |
thrownExceptions, |
Lines 276-282
Link Here
|
276 |
// return this.resolvedType; |
277 |
// return this.resolvedType; |
277 |
// } |
278 |
// } |
278 |
} |
279 |
} |
279 |
if (this.resolvedType == null || this.resolvedType.isAnyType()) |
280 |
if (this.resolvedType == null || this.resolvedType.isAnyType()|| this.resolvedType instanceof ProblemReferenceBinding) |
280 |
{ |
281 |
{ |
281 |
this.binding= new ProblemMethodBinding( |
282 |
this.binding= new ProblemMethodBinding( |
282 |
TypeConstants.INIT, |
283 |
TypeConstants.INIT, |