raphw / byte-buddy

Runtime code generation for the Java virtual machine.
https://bytebuddy.net
Apache License 2.0
6.23k stars 804 forks source link

seems that namedOneOf isn't working as expected #1635

Closed shalom938 closed 4 months ago

shalom938 commented 4 months ago

I wrote a matcher like this one and it worked, filtered methods that are annotated with @WIthSpan not(named("saveToHistory")) .and(not(isAnnotatedWith(named("io.opentelemetry.instrumentation.annotations.WithSpan")))

when I changed named to namedOneOf it stopped working and didn't filter methods that are annotated with @WIthSpan

not(named("saveToHistory")) .and(not(isAnnotatedWith(namedOneOf("io.opentelemetry.instrumentation.annotations.WithSpan")))

shalom938 commented 4 months ago

my mistake