[jboss-jira] [JBoss JIRA] Updated: (JBAOP-243) ${instanceof} disregards method call target

Kabir Khan (JIRA) jira-events at lists.jboss.org
Wed Mar 21 14:18:57 EDT 2007


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

Kabir Khan updated JBAOP-243:
-----------------------------

    Fix Version/s: 2.0.0.alpha5
                       (was: 2.0.0.alpha4)

> ${instanceof} disregards method call target
> -------------------------------------------
>
>                 Key: JBAOP-243
>                 URL: http://jira.jboss.com/jira/browse/JBAOP-243
>             Project: JBoss AOP
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Konstantin Sobolev
>         Assigned To: Kabir Khan
>             Fix For: 2.0.0.alpha5
>
>         Attachments: jbaop-243.tar.gz
>
>
> instanceof{$I}->method() checks a class declaring method() instead of the class on which this method is actually called.
> Example:
> interface I1 {void foo();}
> interface I2 {void bar();}
> class I1Impl implements I1 {void foo(){};}
> class Target extends I1Impl implements I2 {void bar();}
> now $instanceof{I1}->foo() will intercept new Target.foo(), while
> ${instanceof{I1}->bar() won't intercept new Target.bar().
> Testcase implementing this example is attached.
> Please see forum thread for a real life example.

-- 
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