Summary: | Default access field injection fails | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Venkatesh Prasad Ranganath <rvprasad> |
Component: | Compiler | Assignee: | aspectj inbox <aspectj-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.5.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Venkatesh Prasad Ranganath
2006-07-02 18:23:54 EDT
I am trying to recreate this but I dont seem to be able to. Are you able to give me a cut down variant of the ITD'd class? this works fine for me: ---8<---------- package a.b.c; public final aspect ProfilingAspect { static int AbstractFGNode.nodeCount = 0; // CAUSE private pointcut excludingAspect() : !within(ProfilingAspect); private pointcut nodeCreation() : initialization(AbstractFGNode.new(..)); after() : nodeCreation() { AbstractFGNode.nodeCount++; }; public static void m() { System.out.println(AbstractFGNode.nodeCount + " number of nodes were created."); // EFFECT } public static void main(String[] argv) { new Foo(); m(); } } abstract class AbstractFGNode {} class Foo extends AbstractFGNode {} ---8<---------- If it would be easier, then you can the actual ITD'd classes available in binary form (in jar files) from the Indus project (http://indus.projects.cis.ksu.edu). |