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 29853 Details for
Bug 115235
StackOverflowError on circular pointcut iff aspect parameterized
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch containing testcases
pr115235-tests-patch.txt (text/plain), 4.12 KB, created by
Helen Beeken
on 2005-11-14 04:42:10 EST
(
hide
)
Description:
patch containing testcases
Filename:
MIME Type:
Creator:
Helen Beeken
Created:
2005-11-14 04:42:10 EST
Size:
4.12 KB
patch
obsolete
>Index: src/org/aspectj/systemtest/ajc150/Ajc150Tests.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java,v >retrieving revision 1.128 >diff -u -r1.128 Ajc150Tests.java >--- src/org/aspectj/systemtest/ajc150/Ajc150Tests.java 11 Nov 2005 11:23:43 -0000 1.128 >+++ src/org/aspectj/systemtest/ajc150/Ajc150Tests.java 14 Nov 2005 09:33:51 -0000 >@@ -702,6 +702,13 @@ > runTest("no verify error with two args pcds"); > } > >+ public void testNoStackOverflowWithCircularPCDInGenericAspect() { >+ runTest("no StackOverflowError with circular pcd in generic aspect"); >+ } >+ >+ public void testNoStackOverflowWithCircularPCDInGenericAspect2() { >+ runTest("no StackOverflowError with circular pcd in generic aspect - 2"); >+ } > > // helper methods..... > >Index: src/org/aspectj/systemtest/ajc150/ajc150.xml >=================================================================== >RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml,v >retrieving revision 1.205 >diff -u -r1.205 ajc150.xml >--- src/org/aspectj/systemtest/ajc150/ajc150.xml 11 Nov 2005 11:23:43 -0000 1.205 >+++ src/org/aspectj/systemtest/ajc150/ajc150.xml 14 Nov 2005 09:33:55 -0000 >@@ -970,6 +970,19 @@ > <run class="PR113447e"/> > </ajc-test> > >+ <ajc-test dir="bugs150" title="no StackOverflowError with circular pcd in generic aspect"> >+ <compile files="pr115235.aj" options="-1.5"> >+ <message kind="warning" line="3" text="advice defined in GenericAbstractAspect has not been applied [Xlint:adviceDidNotMatch]"/> >+ <message kind="error" text="circular pointcut declaration involving: pc()"/> >+ <message kind="error" line="20" text="circular pointcut declaration involving: pc2()"/> >+ </compile> >+ </ajc-test> >+ >+ <ajc-test dir="bugs150" title="no StackOverflowError with circular pcd in generic aspect - 2"> >+ <compile files="pr115235b.aj" options="-1.5"> >+ </compile> >+ </ajc-test> >+ > <!-- ============================================================================ --> > <!-- ============================================================================ --> > >Index: bugs150/pr115235.aj >=================================================================== >RCS file: bugs150/pr115235.aj >diff -N bugs150/pr115235.aj >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs150/pr115235.aj 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,22 @@ >+abstract aspect GenericAbstractAspect<T>{ >+ abstract protected pointcut pc(); >+ before() : pc() {} >+} >+ >+aspect Concrete extends GenericAbstractAspect<Concrete> { >+ // should get circular dependency error message from this >+ protected pointcut pc() : pc(); >+} >+ >+aspect Concrete2 extends GenericAbstractAspect<Concrete2> { >+ // this should compile as expected >+ protected pointcut pc() : p1(); >+ pointcut p1() : call(void Concrete2.foo(..)); >+} >+ >+aspect Concrete3 extends GenericAbstractAspect<Concrete3> { >+ // should get circular dependency error message from this >+ protected pointcut pc() : pc1(); >+ pointcut pc1() : pc2(); >+ pointcut pc2() : pc(); >+} >Index: bugs150/pr115235b.aj >=================================================================== >RCS file: bugs150/pr115235b.aj >diff -N bugs150/pr115235b.aj >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs150/pr115235b.aj 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,28 @@ >+abstract aspect GenericAbstractAspect<T> { >+ abstract protected pointcut pc(); >+ before() : pc() {} >+} >+ >+abstract aspect SubGenericAspect<T> extends GenericAbstractAspect<T> { >+ abstract protected pointcut pc1(); >+ abstract protected pointcut pc3(); >+ >+ protected pointcut pc() : pc1(); >+ protected pointcut pc2() : pc3(); >+} >+ >+// this should compile with no errors >+aspect Concrete2 extends SubGenericAspect<String> { >+ protected pointcut pc() : pc1(); >+ protected pointcut pc1() :pc3(); >+ protected pointcut pc3() : execution(* *(String)); >+} >+ >+class C { >+ >+ public void method(String s) { >+ } >+ >+ public void method2(int i) { >+ } >+}
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 115235
:
29852
| 29853