<div> </div>
<div>I have the following class A :</div>
<div> </div>
<div> class A {</div>
<div> </div>
<div> class B *c_b; </div>
<div> class C *c_c;</div>
<div> </div>
<div> A() {</div>
<div> </div>
<div> c_b= new B();</div>
<div> c_c= new C();</div>
<div> </div>
<div> }</div>
<div> </div>
<div>}</div>
<div><br clear="all">And then, I defined an aspect as following:</div>
<div> </div>
<div>aspect my_aspect {</div>
<div> </div>
<div>advice construction("A"):after(){</div>
<div> </div>
<div>tjp->that()->c_b->method1( tjp->that()->c_c->variable1);</div>
<div> </div>
<div>};</div>
<div> </div>
<div>}</div>
<div></div>
<div> </div>
<div>there is an error. So, maybe I can't use "tjp" in advice "construction" ?</div>
<div> </div>
<div>but if I want to call a method of c_b using the variables fo c_c when constructing the class A. And I want to do this job using aspect. What should i do?</div>
<div><br>-- <br>Best regards,<br>Feng Liu<br></div>