Index: compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java,v retrieving revision 1.56 diff -u -r1.56 ASTNode.java --- compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java 4 Jan 2006 13:31:52 -0000 1.56 +++ compiler/org/eclipse/jdt/internal/compiler/ast/ASTNode.java 7 Jan 2006 03:12:02 -0000 @@ -365,7 +365,7 @@ } if (refType.hasRestrictedAccess()) { - AccessRestriction restriction = scope.environment().getAccessRestriction(type); + AccessRestriction restriction = scope.environment().getAccessRestriction(type.erasure()); if (restriction != null) { scope.problemReporter().forbiddenReference(type, this, restriction.getMessageTemplate(), restriction.getProblemId()); }