]> source.dussan.org Git - aspectj.git/commitdiff
303758: fixes
authoraclement <aclement>
Wed, 24 Feb 2010 18:34:01 +0000 (18:34 +0000)
committeraclement <aclement>
Wed, 24 Feb 2010 18:34:01 +0000 (18:34 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelMethod.java

index f7c463ddf16cc844b759ec1e0ebe1c41fbcaccfc..b13faf71a7542dc28a321d2ac5dae0db8c39e619 100644 (file)
@@ -561,7 +561,11 @@ class BcelMethod extends ResolvedMemberImpl {
                                                + " with generic signature " + gSig + " the following error was detected: " + e.getMessage());
                        }
                        GenericSignature.TypeSignature[] paramTypeSigs = mSig.parameters;
-                       genericParameterTypes = new UnresolvedType[paramTypeSigs.length];
+                       if (paramTypeSigs.length == 0) {
+                               genericParameterTypes = UnresolvedType.NONE;
+                       } else {
+                               genericParameterTypes = new UnresolvedType[paramTypeSigs.length];
+                       }
                        for (int i = 0; i < paramTypeSigs.length; i++) {
                                try {
                                        genericParameterTypes[i] = BcelGenericSignatureToTypeXConverter.typeSignature2TypeX(paramTypeSigs[i], formals,