-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncomment and fix JAX-RS default method tests #2930
Conversation
@@ -36,8 +35,7 @@ | |||
|
|||
public static ElementMatcher.Junction<TypeDescription> safeHasSuperType( | |||
ElementMatcher<TypeDescription> matcher) { | |||
return not(isInterface()) | |||
.and(new SafeHasSuperTypeMatcher(new SafeErasureMatcher<>(matcher), false)); | |||
return new SafeHasSuperTypeMatcher(new SafeErasureMatcher<>(matcher), false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this change, interface default methods are not instrumented. I looked through the callers and changed some of them to extendsClass()
, and the remaining seem more correct taking interface default methods in to account.
@@ -25,8 +25,7 @@ | |||
|
|||
public static ElementMatcher.Junction<TypeDescription> implementsInterface( | |||
ElementMatcher<TypeDescription> matcher) { | |||
return not(isInterface()) | |||
.and(new SafeHasSuperTypeMatcher(new SafeErasureMatcher<>(matcher), true)); | |||
return new SafeHasSuperTypeMatcher(new SafeErasureMatcher<>(matcher), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change was not needed for JAX-RS default methods, but I looked through callers and not sure why we wouldn't also want to instrument interface default methods, so removed not(isInterface())
here too
@trask please rebase |
No description provided.