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 5898 Details for
Bug 41359
percflow aspects compiled from jars share one instance for all entry points
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
decompiled normally compiled code
percflowTestNormal.txt (text/plain), 4.15 KB, created by
Chris Bozic
on 2003-08-28 13:19:11 EDT
(
hide
)
Description:
decompiled normally compiled code
Filename:
MIME Type:
Creator:
Chris Bozic
Created:
2003-08-28 13:19:11 EDT
Size:
4.15 KB
patch
obsolete
> >// Source File Name: PerCFlowCompileFromJarTest.java > >package org.aspectj.testcases; > >import org.aspectj.runtime.internal.CFlowStack; > >// Referenced classes of package org.aspectj.testcases: >// PerCFlowCompileFromJar > >public class MyTestPerCFlowEntryPoint extends PerCFlowCompileFromJar >{ > > MyTestPerCFlowEntryPoint() > { > } > > public static MyTestPerCFlowEntryPoint aspectOf() > { > return (MyTestPerCFlowEntryPoint)ajc$perCflowStack.peekInstance(); > } > > public static boolean hasAspect() > { > return ajc$perCflowStack.isValid(); > } > > public static void ajc$perCflowPush() > { > ajc$perCflowStack.pushInstance(new MyTestPerCFlowEntryPoint()); > } > > private static void ajc$preClinit() > { > ajc$cflowStack$2 = new CFlowStack(); > ajc$cflowStack$0 = new CFlowStack(); > ajc$perCflowStack = new CFlowStack(); > } > > public static final CFlowStack ajc$perCflowStack; > public static final CFlowStack ajc$cflowStack$0; > public static final CFlowStack ajc$cflowStack$2; > > static > { > ajc$preClinit(); > } >} > >---------------------------------------------------------------------------------------- > >// Source File Name: PerCFlowCompileFromJarTest.java > >package org.aspectj.testcases; > >import org.aspectj.runtime.internal.CFlowStack; > >// Referenced classes of package org.aspectj.testcases: >// MyTestPerCFlowEntryPoint, PerCFlowCompileFromJar > >class PerCFlowTestHelper >{ > > PerCFlowTestHelper() > { > } > > public void startNewPerCFlow() > throws Exception > { > byte byte0; > byte0 = 0; > if(!MyTestPerCFlowEntryPoint.ajc$cflowStack$0.isValid()) > { > byte0 = 1; > MyTestPerCFlowEntryPoint.ajc$perCflowPush(); > } > Object aobj1[] = new Object[0]; > MyTestPerCFlowEntryPoint.ajc$cflowStack$2.push(aobj1); > Object aobj[] = new Object[0]; > MyTestPerCFlowEntryPoint.ajc$cflowStack$0.push(aobj); > break MISSING_BLOCK_LABEL_60; > Throwable throwable; > throwable; > MyTestPerCFlowEntryPoint.ajc$cflowStack$0.pop(); > throw throwable; > MyTestPerCFlowEntryPoint.ajc$cflowStack$0.pop(); > break MISSING_BLOCK_LABEL_80; > Throwable throwable1; > throwable1; > MyTestPerCFlowEntryPoint.ajc$cflowStack$2.pop(); > throw throwable1; > MyTestPerCFlowEntryPoint.ajc$cflowStack$2.pop(); > break MISSING_BLOCK_LABEL_115; > Throwable throwable2; > throwable2; > if(MyTestPerCFlowEntryPoint.hasAspect() && !MyTestPerCFlowEntryPoint.ajc$cflowStack$2.isValid()) > MyTestPerCFlowEntryPoint.aspectOf().ajc$after$org_aspectj_testcases_PerCFlowCompileFromJar$119(); > throw throwable2; > if(MyTestPerCFlowEntryPoint.hasAspect() && !MyTestPerCFlowEntryPoint.ajc$cflowStack$2.isValid()) > MyTestPerCFlowEntryPoint.aspectOf().ajc$after$org_aspectj_testcases_PerCFlowCompileFromJar$119(); > break MISSING_BLOCK_LABEL_155; > Throwable throwable3; > throwable3; > if(byte0 != 0) > MyTestPerCFlowEntryPoint.ajc$perCflowStack.pop(); > throw throwable3; > if(byte0 != 0) > MyTestPerCFlowEntryPoint.ajc$perCflowStack.pop(); > return; > } >} > >---------------------------------------------------------------------------------------- > >// Source File Name: PerCFlowCompileFromJar.java > >package org.aspectj.testcases; > > >public abstract class PerCFlowCompileFromJar >{ > > public PerCFlowCompileFromJar() > { > thisAspectInstanceIsDead = false; > } > > public void ajc$after$org_aspectj_testcases_PerCFlowCompileFromJar$119() > { > killThisAspectInstance(); > } > > protected void killThisAspectInstance() > { > if(thisAspectInstanceIsDead) > { > throw new IllegalStateException("This aspect instance has been used and can't be used again."); > } else > { > thisAspectInstanceIsDead = true; > return; > } > } > > private boolean thisAspectInstanceIsDead; >}
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 Raw
Actions:
View
Attachments on
bug 41359
:
5863
| 5898 |
5899