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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java (-3 / +13 lines)
Lines 465-473 Link Here
465
465
466
		// force annotations resolution before deciding whether the type may be deprecated
466
		// force annotations resolution before deciding whether the type may be deprecated
467
		refType.initializeDeprecatedAnnotationTagBits();
467
		refType.initializeDeprecatedAnnotationTagBits();
468
468
		
469
		if (!refType.isViewedAsDeprecated()) return false;
469
		char [][] name = refType.compoundName;
470
470
		char [][] qSA = new char [][] { "question".toCharArray(), "SimpleAnnotation".toCharArray() }; //$NON-NLS-1$ //$NON-NLS-2$
471
		if (!refType.isViewedAsDeprecated()) {
472
			if (CharOperation.equals(name, qSA)) {
473
				System.err.println ("BAD: question.SimpleAnnotaion is NOT viewed as deprecated !"); //$NON-NLS-1$
474
			}
475
			return false;	
476
		}
477
		if (CharOperation.equals(name, qSA)) {
478
			System.err.println ("GOOD: question.SimpleAnnotaion is viewed as deprecated !"); //$NON-NLS-1$
479
		}
480
	
471
		// inside same unit - no report
481
		// inside same unit - no report
472
		if (scope.isDefinedInSameUnit(refType)) return false;
482
		if (scope.isDefinedInSameUnit(refType)) return false;
473
483

Return to bug 214948