diff options
author | Markus Keller | 2013-01-03 18:01:39 +0000 |
---|---|---|
committer | Markus Keller | 2013-01-03 18:01:39 +0000 |
commit | 01507ee98d5beecae71082dd137e782bb5a3bef0 (patch) | |
tree | c371458a5bfc75bf35a753d053e21c1a1c5192eb | |
parent | 5a4b4a5bb82958c7c1b641811ee8d4c999d39c4e (diff) | |
download | eclipse.jdt.core-01507ee98d5beecae71082dd137e782bb5a3bef0.tar.gz eclipse.jdt.core-01507ee98d5beecae71082dd137e782bb5a3bef0.tar.xz eclipse.jdt.core-01507ee98d5beecae71082dd137e782bb5a3bef0.zip |
Bug 388042: Add unimplemented methods fails with exception (with unresolved annotation)v20130103-180139I20130108-0800
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/UnresolvedAnnotationBinding.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/UnresolvedAnnotationBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/UnresolvedAnnotationBinding.java index fe6d35db79..57952eaa7b 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/UnresolvedAnnotationBinding.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/UnresolvedAnnotationBinding.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -21,8 +21,14 @@ UnresolvedAnnotationBinding(ReferenceBinding type, ElementValuePair[] pairs, Loo public ReferenceBinding getAnnotationType() { if (this.typeUnresolved) { // the type is resolved when requested - this.type = (ReferenceBinding) BinaryTypeBinding.resolveType(this.type, this.env, false /* no raw conversion for now */); - // annotation type are never parameterized + boolean wasToleratingMissingTypeProcessingAnnotations = this.env.mayTolerateMissingType; + this.env.mayTolerateMissingType = true; // https://bugs.eclipse.org/bugs/show_bug.cgi?id=388042 + try { + this.type = (ReferenceBinding) BinaryTypeBinding.resolveType(this.type, this.env, false /* no raw conversion for now */); + // annotation types are never parameterized + } finally { + this.env.mayTolerateMissingType = wasToleratingMissingTypeProcessingAnnotations; + } this.typeUnresolved = false; } return this.type; |