View | Details | Raw Unified | Return to bug 123522 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java (+8 lines)
Lines 2786-2791 Link Here
2786
				if (context != null && context.isViewedAsDeprecated())
2786
				if (context != null && context.isViewedAsDeprecated())
2787
					return true;
2787
					return true;
2788
				break;
2788
				break;
2789
			case Scope.COMPILATION_UNIT_SCOPE :
2790
				// consider import as being deprecated if first type is itself deprecated (123522)
2791
				CompilationUnitDeclaration unit = referenceCompilationUnit();
2792
				if (unit.types != null && unit.types.length > 0) {
2793
					SourceTypeBinding type = unit.types[0].binding;
2794
					if (type != null && type.isViewedAsDeprecated())
2795
						return true;
2796
				}
2789
		}
2797
		}
2790
		return false;
2798
		return false;
2791
	}
2799
	}

Return to bug 123522