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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java (-1 / +1 lines)
Lines 365-371 Link Here
365
		}
365
		}
366
		
366
		
367
		if (refType.hasRestrictedAccess()) {
367
		if (refType.hasRestrictedAccess()) {
368
			AccessRestriction restriction = scope.environment().getAccessRestriction(type);
368
			AccessRestriction restriction = scope.environment().getAccessRestriction(type.erasure());
369
			if (restriction != null) {
369
			if (restriction != null) {
370
				scope.problemReporter().forbiddenReference(type, this, restriction.getMessageTemplate(), restriction.getProblemId());
370
				scope.problemReporter().forbiddenReference(type, this, restriction.getMessageTemplate(), restriction.getProblemId());
371
			}
371
			}

Return to bug 122995