aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/testsrc
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-10-24 20:46:51 +0000
committeracolyer <acolyer>2005-10-24 20:46:51 +0000
commit17d987fec6ed69281e8427b60c5cb4d9cd305b0f (patch)
treefbc9f63b6ce7e1d60f50f4f5ebb017fb4e7d6c69 /weaver/testsrc
parent70888ddc862b717646b236db2767e11a586b6157 (diff)
downloadaspectj-17d987fec6ed69281e8427b60c5cb4d9cd305b0f.tar.gz
aspectj-17d987fec6ed69281e8427b60c5cb4d9cd305b0f.zip
ensure that reflection based world can cope when given a java.lang.Class that represents an array type (such a class has a "name" that is actually the signature string).
Diffstat (limited to 'weaver/testsrc')
-rw-r--r--weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java
index 8f0942725..4bc879dae 100644
--- a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java
+++ b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java
@@ -12,6 +12,7 @@
package org.aspectj.weaver.reflect;
import org.aspectj.weaver.ResolvedType;
+import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.World;
import junit.framework.TestCase;
@@ -25,4 +26,11 @@ public class ReflectionWorldTest extends TestCase {
assertEquals("Ljava/lang/Object;",rt.getSignature());
}
+ public void testArrayTypes() {
+ World world = new ReflectionWorld();
+ String[] strArray = new String[1];
+ ResolvedType rt = world.resolve(UnresolvedType.forSignature(strArray.getClass().getName()));
+ assertTrue(rt.isArray());
+ }
+
}