-
Notifications
You must be signed in to change notification settings - Fork 1k
make javaagent-tooling and testing-common indy-ready #15133
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
Conversation
…nstrumentation into indy-other
...ExceptionHandler/java/io/opentelemetry/javaagent/tooling/bytebuddy/ExceptionHandlerTest.java
Outdated
Show resolved
Hide resolved
...ng/src/testExceptionHandler/java/io/opentelemetry/javaagent/tooling/bytebuddy/BadAdvice.java
Show resolved
Hide resolved
…nstrumentation into indy-other
…nstrumentation into indy-other
| @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) | ||
| public static boolean methodEnter() { | ||
| // always skip original method body | ||
| return 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.
[for reviewer] Without this the original return value -1 is returned in the context.FieldBackedImplementationTest#removeInstanceState test, even if the exit advice that should alter the return value executes properly.
...ng/src/testExceptionHandler/java/io/opentelemetry/javaagent/tooling/bytebuddy/BadAdvice.java
Show resolved
Hide resolved
| suppress = Throwable.class, | ||
| onThrowable = Throwable.class, | ||
| inline = false) | ||
| public static void onMethodExit(@Advice.Thrown Throwable throwable) { |
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.
removing unused argument and useless annotation (advice returns void)
…nstrumentation into indy-other
…nstrumentation into indy-other
...ExceptionHandler/java/io/opentelemetry/javaagent/tooling/bytebuddy/ExceptionHandlerTest.java
Outdated
Show resolved
Hide resolved
…nstrumentation into indy-other
Part of #13031