diff options
author | Andy Clement <aclement@pivotal.io> | 2016-06-17 10:40:29 -0700 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2016-06-17 10:40:29 -0700 |
commit | 34f33f6948799dd57aeef1d8422f796fbd6d416d (patch) | |
tree | 805c1d6cd7bd2c6868e519f6c34a8f3fcb7f634c /weaver5 | |
parent | f8b86ff2c03a77e47e87573b59bc43c57cfdee38 (diff) | |
download | aspectj-34f33f6948799dd57aeef1d8422f796fbd6d416d.tar.gz aspectj-34f33f6948799dd57aeef1d8422f796fbd6d416d.zip |
Upgrading to latest 1.9 compiler
Diffstat (limited to 'weaver5')
-rw-r--r-- | weaver5/java5-testsrc/org/aspectj/weaver/MemberTestCase15.java | 2 | ||||
-rw-r--r-- | weaver5/java5-testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java | 25 |
2 files changed, 25 insertions, 2 deletions
diff --git a/weaver5/java5-testsrc/org/aspectj/weaver/MemberTestCase15.java b/weaver5/java5-testsrc/org/aspectj/weaver/MemberTestCase15.java index 7838c0696..f44095a0e 100644 --- a/weaver5/java5-testsrc/org/aspectj/weaver/MemberTestCase15.java +++ b/weaver5/java5-testsrc/org/aspectj/weaver/MemberTestCase15.java @@ -11,8 +11,6 @@ * ******************************************************************/ package org.aspectj.weaver; -import java.util.List; - import org.aspectj.weaver.bcel.BcelWorld; import junit.framework.TestCase; diff --git a/weaver5/java5-testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java b/weaver5/java5-testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java index 5c08cf892..cbde8e680 100644 --- a/weaver5/java5-testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java +++ b/weaver5/java5-testsrc/org/aspectj/weaver/reflect/ReflectionWorldTest.java @@ -13,9 +13,12 @@ package org.aspectj.weaver.reflect; import junit.framework.TestCase; +import java.util.List; + import org.aspectj.weaver.ResolvedType; import org.aspectj.weaver.UnresolvedType; import org.aspectj.weaver.World; +import org.aspectj.weaver.patterns.ConcreteCflowPointcut; public class ReflectionWorldTest extends TestCase { @@ -38,5 +41,27 @@ public class ReflectionWorldTest extends TestCase { assertEquals("int", UnresolvedType.INT, world.resolve(int.class)); assertEquals("void", UnresolvedType.VOID, world.resolve(void.class)); } + + static class AbstractSuperClass<A,B> {} + static interface InterfaceOne {} + static interface InterfaceTwo<A> {} + static class ID {} + static abstract class AbstractTestClass<T> extends AbstractSuperClass<T,ID> implements InterfaceOne, InterfaceTwo<T> { + + } + static class TestType {} +// static class ConcreteClass extends AbstractTestClass<TestType> { + static class ConcreteClass extends AbstractTestClass<List<TestType>> { + } + + static class Bar extends ConcreteClass {} + + public void testGenerics() { + ReflectionWorld world = new ReflectionWorld(getClass().getClassLoader()); +// world.lookupOrCreateName(UnresolvedType.forName(AbstractTestClass.class.getName())); +// ResolvedType resolvedType = world.resolve(AbstractTestClass.class); + JavaLangTypeToResolvedTypeConverter converter = new JavaLangTypeToResolvedTypeConverter(world); + ResolvedType resolvedType2 = converter.fromType(ConcreteClass.class); + } } |