]
Kabir Khan commented on JBAOP-243:
----------------------------------
Archived test exists in subversion
${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
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: