diff options
author | aclement <aclement> | 2006-05-22 14:26:11 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-22 14:26:11 +0000 |
commit | 8825b5c86b769c3bf67457967dab4c6e3d59b74f (patch) | |
tree | a15688fe333d8df1b0bc583c90f38bceccb8569c /tests | |
parent | 4dea3ad2411d5ea80b6f49ed342e96e52a39a91a (diff) | |
download | aspectj-8825b5c86b769c3bf67457967dab4c6e3d59b74f.tar.gz aspectj-8825b5c86b769c3bf67457967dab4c6e3d59b74f.zip |
fix for 137568: dreaded generics signature
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs152/pr137568/C.java | 15 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | 5 |
2 files changed, 12 insertions, 8 deletions
diff --git a/tests/bugs152/pr137568/C.java b/tests/bugs152/pr137568/C.java index fd7d64610..31fefae9a 100644 --- a/tests/bugs152/pr137568/C.java +++ b/tests/bugs152/pr137568/C.java @@ -19,11 +19,18 @@ //} interface IGuard<P> {} + interface Guard<P> extends IGuard<P> {} + +class GuardImpl<X> implements Guard<X> {} + public class C<T> { + private boolean checkGuards(Class<? extends IGuard<T>>[] guardClz) throws Exception { return false;} - public static void main(String []argv) { - Guard<String> g = new Guard<String>(); - new C<String>().checkGuards(g.getClass());//Guard.class); + + public static void main(String []argv) throws Exception { + GuardImpl<String> g = new GuardImpl<String>(); + //new C<String>().checkGuards(g.getClass());//Guard.class); + new C<String>().checkGuards(new Class[]{g.getClass()});//Guard.class); } -}
\ No newline at end of file +} diff --git a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java index 16819a7fb..126c8e887 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java @@ -17,6 +17,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testComplexGenericDecl_pr137568() { runTest("complicated generics declaration");} public void testItdOnInnerTypeOfGenericType_pr132349() { runTest("ITD on inner type of generic type");} public void testItdOnInnerTypeOfGenericType_pr132349_2() { runTest("ITD on inner type of generic type - 2");} public void testItdOnInnerTypeOfGenericType_pr132349_3() { runTest("ITD on inner type of generic type - 3");} @@ -40,7 +41,6 @@ public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testNotAtWithincode_pr138158_1() { runTest("not at withincode - 1");} public void testNotAtWithincode_pr138158_2() { runTest("not at withincode - 2");} public void testNotAtWithincode_pr138158_3() { runTest("not at within - 3");} -// public void testComplexGenericDecl_pr137568() { runTest("complicated generics declaration");} public void testNpeOnDup_pr138143() { runTest("npe on duplicate method with ataj");} public void testPointcutsAndGenerics_pr137496_1() { runTest("pointcuts and generics - B");} public void testPointcutsAndGenerics_pr137496_2() { runTest("pointcuts and generics - D");} @@ -53,14 +53,11 @@ public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testIncorrectOverridesEvaluation13() { runTest("incorrect overrides evaluation - 1.3"); } public void testIncorrectOverridesEvaluation15() { runTest("incorrect overrides evaluation - 1.5"); } public void testAtWithinCodeBug_pr138798() { runTest("atWithinCodeBug"); } - - // known failures, uncomment when working. public void testReferencePCutInDeclareWarning_pr138215() { runTest("Reference pointcut fails inside @DeclareWarning");} public void testReferencePCutInPerClause_pr138219() { runTest("Can't use a FQ Reference pointcut in any pointcut expression referenced by a per-clause");} public void testReferencePCutInPerClause_pr130722() { runTest("FQ Reference pointcut from perclause ref pc"); } public void testDoubleAnnotationMatching_pr138223() { runTest("Double at annotation matching (no binding)");} public void testSuperCallsInAtAspectJAdvice_pr139749() { runTest("Super calls in @AspectJ advice");} - public void testNoClassCastExceptionWithPerThis_pr138286() { runTest("No ClassCastException with perThis");} // this next one reported as a bug by Rob Harrop, but I can't reproduce the failure yet... |