You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither of those does give a strong hint about function match changes and I have no idea what null if that method is null means.
I did not fully test following but Kind.Call with @TargetInstance has similar problem: probe will match only non-static methods and current documentation has following note: TargetInstance - the target instance of the method call or null if the method is static
The text was updated successfully, but these errors were encountered:
jikuja
changed the title
Usage of @Self when probing static methods
Usage of @Self and @TargetInstance when probing static methods
Mar 26, 2016
I found this http://stackoverflow.com/a/24902885/776884 explaining that @self makes probes to match only non-static functions. Is this explained in documentation?
I found https://btrace.kenai.com/javadoc/dev/com/sun/btrace/annotations/Self.html :
Marks a method parameter as the one that should contain *this* instance
and https://btrace.kenai.com/javadoc/dev/com/sun/btrace/annotations/Kind.html#ENTRY (sic, javadocs should be updated)Self - the instance enclosing the declaring method or null if that method is null
from javadocs.Neither of those does give a strong hint about function match changes and I have no idea what
null if that method is null
means.I did not fully test following but
Kind.Call
with@TargetInstance
has similar problem: probe will match only non-static methods and current documentation has following note:TargetInstance - the target instance of the method call or null if the method is static
The text was updated successfully, but these errors were encountered: