[jboss-jira] [JBoss JIRA] Closed: (JBAOP-301) FieldAccess for inherited fields does not get replaced

Kabir Khan (JIRA) jira-events at jboss.com
Wed Nov 1 16:18:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBAOP-301?page=all ]

Kabir Khan closed JBAOP-301.
----------------------------

    Resolution: Done

Change the mechanism in Instrumentor.convertReferences() to add superclasses of the referenced classes

> FieldAccess for inherited fields does not get replaced
> ------------------------------------------------------
>
>                 Key: JBAOP-301
>                 URL: http://jira.jboss.com/jira/browse/JBAOP-301
>             Project: JBoss AOP
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Kabir Khan
>         Assigned To: Kabir Khan
>             Fix For: 2.0.0.alpha2
>
>
> field(* POJO->field)
> field(* Sub->subField)
> class POJO
> {
>   int field;
> }
> class Sub extends POJO
> {
>    int subField;
> }
> Sub sub = new Sub();
> sub.subField();//works as expected
> sub.field()//Does not get intercepted.
> The problem seems to be that CtClass.getRefClasses() now only returns classes that are explicitly referenced. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list