Index: src/org/aspectj/systemtest/ajc152/Ajc152Tests.java =================================================================== RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java,v retrieving revision 1.11 diff -u -r1.11 Ajc152Tests.java --- src/org/aspectj/systemtest/ajc152/Ajc152Tests.java 25 Apr 2006 12:07:51 -0000 1.11 +++ src/org/aspectj/systemtest/ajc152/Ajc152Tests.java 26 Apr 2006 12:52:35 -0000 @@ -38,6 +38,8 @@ // public void testReferencePCutInPerClause_pr138219() { runTest("Can't use a FQ Reference pointcut in any pointcut expression referenced by a per-clause");} // public void testDoubleAnnotationMatching_pr138223() { runTest("Double at annotation matching (no binding)");} + 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... //public void testAtAspectWithReferencePCPerClause_pr138220() { runTest("@Aspect with reference pointcut in perclause");} Index: src/org/aspectj/systemtest/ajc152/ajc152.xml =================================================================== RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml,v retrieving revision 1.9 diff -u -r1.9 ajc152.xml --- src/org/aspectj/systemtest/ajc152/ajc152.xml 25 Apr 2006 07:33:24 -0000 1.9 +++ src/org/aspectj/systemtest/ajc152/ajc152.xml 26 Apr 2006 12:52:35 -0000 @@ -165,4 +165,9 @@ + + + + + \ No newline at end of file Index: bugs152/pr138286/A.aj =================================================================== RCS file: bugs152/pr138286/A.aj diff -N bugs152/pr138286/A.aj --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ bugs152/pr138286/A.aj 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,5 @@ +public aspect A perthis(annotatedClasses()) { + + pointcut annotatedClasses() : @this(MyAnnotation) ; + +} Index: bugs152/pr138286/MyAnnotation.java =================================================================== RCS file: bugs152/pr138286/MyAnnotation.java diff -N bugs152/pr138286/MyAnnotation.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ bugs152/pr138286/MyAnnotation.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,8 @@ +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; + +@Retention(RUNTIME) +public @interface MyAnnotation { + +}