diff options
author | aclement <aclement> | 2005-05-06 10:21:26 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-05-06 10:21:26 +0000 |
commit | 7389d9fc0252b90a9b0bf2cb1861a0f3802ad320 (patch) | |
tree | ef22d67aa16d9c996dd08cdcc55e131cf6bf94d7 /weaver/src | |
parent | 87f211f62cd0af7b74d9d00123e736941f015fee (diff) | |
download | aspectj-7389d9fc0252b90a9b0bf2cb1861a0f3802ad320.tar.gz aspectj-7389d9fc0252b90a9b0bf2cb1861a0f3802ad320.zip |
Fix for pr91267 (Generics): NPE at EclipseFactory.java:143 when using generic methods in aspects
Diffstat (limited to 'weaver/src')
-rw-r--r-- | weaver/src/org/aspectj/weaver/TypeX.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/weaver/src/org/aspectj/weaver/TypeX.java b/weaver/src/org/aspectj/weaver/TypeX.java index cd9e352f3..f3f078c37 100644 --- a/weaver/src/org/aspectj/weaver/TypeX.java +++ b/weaver/src/org/aspectj/weaver/TypeX.java @@ -92,6 +92,7 @@ public class TypeX implements AnnotatedElement { public static TypeX forName(String name) { return forSignature(nameToSignature(name)); } + /** Constructs a TypeX for each java language type name in an incoming array. * @@ -121,10 +122,10 @@ public class TypeX implements AnnotatedElement { StringBuffer sigAddition = new StringBuffer(); sigAddition.append("<"); for (int i = 0; i < ret.typeParameters.length; i++) { - sigAddition.append(ret.typeParameters[i].signature); - sigAddition.append(">"); - sigAddition.append(";"); + sigAddition.append(ret.typeParameters[i].signature); } + sigAddition.append(">"); + sigAddition.append(";"); ret.signature = ret.signature + sigAddition.toString(); return ret; } |