Skip to content

Return type is ignored in the 'type' check #517

@jbachorik

Description

@jbachorik

When using the following probe definition

@OnMethod(clazz = "myClass", method = "/.*/", type = "long (int, java.lang.String)")
public static void onMethod(int arg1, String arg2) {
...
}

because of the missing constraint on the method return type (the probe is not capturing the return value) BTrace will match any target method using only the argument types, in spite of the user specifying the required return type.

The solution is to add the compatibility check for the return value type when the 'type' check is used.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions