From: aclement Date: Mon, 24 Mar 2008 19:48:28 +0000 (+0000) Subject: 214994: generic itds alias NPE: tests and fix X-Git-Tag: V1_6_0rc1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3dbf9fd5823d04e3ef6b9b39e5ebec62dd3aed35;p=aspectj.git 214994: generic itds alias NPE: tests and fix --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index a87a10f16..fd54e9850 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java @@ -845,6 +845,9 @@ public class EclipseFactory { if (aliases!=null && aliases.size()!=0) { int i=0; ReferenceBinding aliasTarget = (ReferenceBinding)makeTypeBinding(aliasTargetType); + if (aliasTarget.isRawType()) { + aliasTarget = ((RawTypeBinding) aliasTarget).genericType(); + } for (Iterator iter = aliases.iterator(); iter.hasNext();) { String element = (String) iter.next(); typeVariableToTypeBinding.put(element,aliasTarget.typeVariables()[i++]);