aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-16 09:29:35 +0000
committeracolyer <acolyer>2005-08-16 09:29:35 +0000
commit2a599cb4edaf0f5815ad685e1dfe5f8d8c3ccaba (patch)
tree1fb19e48f0f08fee6d83ae2026f29188c2a73332 /weaver
parentd572efd0e7f165e363936279ef9404ba6f034417 (diff)
downloadaspectj-2a599cb4edaf0f5815ad685e1dfe5f8d8c3ccaba.tar.gz
aspectj-2a599cb4edaf0f5815ad685e1dfe5f8d8c3ccaba.zip
fix for Bugzilla Bug 107059
parser crashes on call(void (@a *)(..)
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
index 97d418f90..2f83084b5 100644
--- a/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
+++ b/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
@@ -462,6 +462,7 @@ public class WildTypePattern extends TypePattern {
}
//System.err.println("extract from : " + Arrays.asList(namePatterns));
int len = namePatterns.length;
+ if (len ==1 && !annotationPattern.isAny()) return null; // can't extract
NamePattern ret = namePatterns[len-1];
NamePattern[] newNames = new NamePattern[len-1];
System.arraycopy(namePatterns, 0, newNames, 0, len-1);