From 3dbf9fd5823d04e3ef6b9b39e5ebec62dd3aed35 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 24 Mar 2008 19:48:28 +0000 Subject: [PATCH] 214994: generic itds alias NPE: tests and fix --- .../aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | 3 +++ 1 file changed, 3 insertions(+) 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++]); -- 2.39.5