summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-06-09 15:43:07 +0000
committeracolyer <acolyer>2004-06-09 15:43:07 +0000
commita410567f2d9da6df3cfa51af84a6f7bc5a9c0418 (patch)
treed340211753d852a895d6d95072e41cdb65690cff
parent4c15d23799c086731e33e4506bc5fe5417bc14c5 (diff)
downloadaspectj-a410567f2d9da6df3cfa51af84a6f7bc5a9c0418.tar.gz
aspectj-a410567f2d9da6df3cfa51af84a6f7bc5a9c0418.zip
handle primitive types correctly when doing RTTI resolving
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
index 61c778358..f710c5aaa 100644
--- a/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
+++ b/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
@@ -386,6 +386,7 @@ public class WildTypePattern extends TypePattern {
String cleanName = maybeGetCleanName();
if (cleanName != null) {
Class clazz = null;
+ clazz = maybeGetPrimitiveClass(cleanName);
while (clazz == null) {
try {
@@ -424,6 +425,10 @@ public class WildTypePattern extends TypePattern {
return this;
}
+
+ private Class maybeGetPrimitiveClass(String typeName) {
+ return (Class) ExactTypePattern.primitiveTypesMap.get(typeName);
+ }
public boolean isStar() {
return namePatterns.length == 1 && namePatterns[0].isAny();