Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 39541 Details for
Bug 138286
perthis() causes ClassCastException
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch containing failing testcase
pr138286-tests-patch.txt (text/plain), 2.66 KB, created by
Helen Beeken
on 2006-04-26 11:35:49 EDT
(
hide
)
Description:
patch containing failing testcase
Filename:
MIME Type:
Creator:
Helen Beeken
Created:
2006-04-26 11:35:49 EDT
Size:
2.66 KB
patch
obsolete
>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 @@ > </compile> > </ajc-test> > >+ <ajc-test dir="bugs152/pr138286" pr="138286" title="No ClassCastException with perThis"> >+ <compile files="A.aj, MyAnnotation.java" options="-1.5"> >+ </compile> >+ </ajc-test> >+ > </suite> >\ 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 { >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
aclement
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 138286
:
39367
|
39368
|
39369
| 39541