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 34912 Details for
Bug 122742
[@AspectJ] VerifyError with @AfterThrowing/@AfterReturning and extra JoinPoint argument
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch containing failing testcase
pr122742-tests-patch.txt (text/plain), 2.56 KB, created by
Helen Beeken
on 2006-02-17 09:30:22 EST
(
hide
)
Description:
patch containing failing testcase
Filename:
MIME Type:
Creator:
Helen Beeken
Created:
2006-02-17 09:30:22 EST
Size:
2.56 KB
patch
obsolete
>Index: src/org/aspectj/systemtest/ajc151/Ajc151Tests.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java,v >retrieving revision 1.23 >diff -u -r1.23 Ajc151Tests.java >--- src/org/aspectj/systemtest/ajc151/Ajc151Tests.java 16 Feb 2006 16:50:34 -0000 1.23 >+++ src/org/aspectj/systemtest/ajc151/Ajc151Tests.java 17 Feb 2006 14:29:54 -0000 >@@ -168,6 +168,10 @@ > runTest("@AJ declare parents retains field state"); > } > >+ public void testAtAspectVerifyErrorWithAfterThrowingAndthisJoinPoint_pr122742() { >+ runTest("@AJ VerifyError with @AfterThrowing and thisJoinPoint argument"); >+ } >+ > /* > * Load-time weaving bugs and enhancements > */ >Index: src/org/aspectj/systemtest/ajc151/ajc151.xml >=================================================================== >RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml,v >retrieving revision 1.21 >diff -u -r1.21 ajc151.xml >--- src/org/aspectj/systemtest/ajc151/ajc151.xml 16 Feb 2006 16:50:34 -0000 1.21 >+++ src/org/aspectj/systemtest/ajc151/ajc151.xml 17 Feb 2006 14:29:54 -0000 >@@ -193,6 +193,12 @@ > </run> > </ajc-test> > >+ <ajc-test dir="bugs151" title="@AJ VerifyError with @AfterThrowing and thisJoinPoint argument"> >+ <compile files="pr122742.java" options="-1.5"/> >+ <run class="pr122742"> >+ </run> >+ </ajc-test> >+ > <!-- New features down here... when they arent big enough to have their own test file --> > > <ajc-test dir="features151/ptw" title="exposing withintype"> >Index: bugs151/pr122742.java >=================================================================== >RCS file: bugs151/pr122742.java >diff -N bugs151/pr122742.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs151/pr122742.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,30 @@ >+import org.aspectj.lang.JoinPoint; >+import org.aspectj.lang.annotation.AfterThrowing; >+import org.aspectj.lang.annotation.Aspect; >+ >+@Aspect >+public class pr122742 { >+ >+ public static void main(String[] args) { >+ try { >+ new B().start(); >+ } catch (Exception e) { >+ e.printStackTrace(); >+ } >+ } >+ >+ @AfterThrowing(pointcut = "execution(public void B.start())", throwing = "ex") >+ public void handleException(JoinPoint jp, Exception ex) { >+ } >+ >+} >+ >+class B implements I { >+ public void start() throws Exception { >+ throw new IllegalArgumentException(); >+ } >+} >+ >+interface I { >+ public void start() throws Exception; >+}
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
Actions:
View
|
Diff
Attachments on
bug 122742
:
32514
|
34912
|
34995
|
34996