I can't immediately think of a way to do that. Even if using an if() clause
on the point cut to insert a runtime test, that test can't tell whose
method is running on the object you have (whether it is a local one or an
inherited one). You can't even inspect the stack trace in the advice (which
would be crude anyway) because the advice invocation is made at the call
site before you enter the method in question.

Incidentally I am probably going to be hanging around on stack overflow
more these days so anyone posting questions here, feel free to start
posting there, I will see them :)

cheers
Andy


On 22 May 2014 00:59, Alexander Kriegisch <alexan...@kriegisch.name> wrote:

> On StackOverflow I saw an interesting question. Even though I (user
> kriegaex) have answered it as good as I could at
>
> http://stackoverflow.com/questions/23791760/aspectj-separating-native-library-calls-from-application-calls/23799457#23799457
> ,
> I am still wondering if there might be a way to find out which method a
> call really resolves to later in all of the four cases mentioned there,
> because in general a call joinpoint's signature is not necessarily equal
> to what gets executed later.
>
> I don't know if anyone can answer that, but my best guess would be Andy
> Clement (as usual). ;-)
> --
> Alexander Kriegisch
> http://scrum-master.de
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to