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 27502 Details for
Bug 103268
Problem with improper multiple worker object instantiations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
testcase patch
pr103268-patch.txt (text/plain), 2.77 KB, created by
Helen Beeken
on 2005-09-26 03:51:04 EDT
(
hide
)
Description:
testcase patch
Filename:
MIME Type:
Creator:
Helen Beeken
Created:
2005-09-26 03:51:04 EDT
Size:
2.77 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.87 >diff -u -r1.87 Ajc150Tests.java >--- src/org/aspectj/systemtest/ajc150/Ajc150Tests.java 22 Sep 2005 15:48:27 -0000 1.87 >+++ src/org/aspectj/systemtest/ajc150/Ajc150Tests.java 26 Sep 2005 07:47:50 -0000 >@@ -454,6 +454,10 @@ > runTest("parameterized generic methods"); > } > >+ public void testAdviceExecutesTwice() { >+ runTest("Advice executes twice after constructing one instance of inner class"); >+ } >+ > // helper methods..... > > public SyntheticRepository createRepos(File cpentry) { >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.142 >diff -u -r1.142 ajc150.xml >--- src/org/aspectj/systemtest/ajc150/ajc150.xml 22 Sep 2005 15:48:27 -0000 1.142 >+++ src/org/aspectj/systemtest/ajc150/ajc150.xml 26 Sep 2005 07:47:53 -0000 >@@ -607,6 +607,16 @@ > </compile> > </ajc-test> > >+ <ajc-test dir="bugs150" pr="103268" title="Advice executes twice after constructing one instance of inner class"> >+ <compile files="pr103268.aj"/> >+ <run class="AbstractAspect"> >+ <stdout> >+ <line text="constructing new class"/> >+ </stdout> >+ </run> >+ </ajc-test> >+ >+ > <!-- ============================================================================ --> > <!-- ============================================================================ --> > >Index: bugs150/pr103268.aj >=================================================================== >RCS file: bugs150/pr103268.aj >diff -N bugs150/pr103268.aj >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs150/pr103268.aj 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,40 @@ >+abstract aspect AbstractAspect { >+ >+ pointcut constructionOfInnerClass() : call(InnerClass+.new(..)); >+ >+ after() returning (InnerClass newClass) : constructionOfInnerClass() { >+ System.out.println("constructing new class"); >+ } >+ >+ public class InnerClass { >+ InnerClass() { >+ } >+ } >+ >+ public static void main(String[] args) { >+ aMethod(); >+ } >+ >+ public static void aMethod() { >+ } >+ >+} >+ >+aspect ConcreteA extends AbstractAspect { >+ >+ pointcut callOfMethod() : call(void aMethod()); >+ >+ before() : callOfMethod() { >+ new InnerClass(); >+ } >+} >+ >+aspect ConcreteB extends AbstractAspect { >+ >+ pointcut dummyPointcut() : call(void blah()); >+ >+ before() : dummyPointcut() { >+ new InnerClass(); >+ } >+ >+}
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 103268
: 27502