summaryrefslogtreecommitdiffstats
path: root/weaver/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2010-02-24 18:34:01 +0000
committeraclement <aclement>2010-02-24 18:34:01 +0000
commitd97b948db1a8481548bc420cbe8c364f1b38c6a9 (patch)
tree2717c5f59d747aa31289ec75f604f40d76165de2 /weaver/src/org
parentb4a21bf7ab6c1d06ca849d2e906083f98e47f51c (diff)
downloadaspectj-d97b948db1a8481548bc420cbe8c364f1b38c6a9.tar.gz
aspectj-d97b948db1a8481548bc420cbe8c364f1b38c6a9.zip
303758: fixes
Diffstat (limited to 'weaver/src/org')
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelMethod.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java b/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java
index f7c463ddf..b13faf71a 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java
@@ -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,