-
Notifications
You must be signed in to change notification settings - Fork 867
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
Use caffeine3 on jdk11 and caffeine2 on older jdks #4154
Conversation
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.
Nice 👍
|
||
package io.opentelemetry.instrumentation.api.caching; | ||
|
||
import io.opentelemetry.instrumentation.api.internal.shaded.caffeine2.cache.Caffeine; |
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.
I was hoping it's possible to use the same package but put caffeine3 into the mrjar folder. And with just one implementation jvm would automatically pick the correct one. Could it work?
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.
Unfortunately afaik boot loader does not support mrjars.
Co-authored-by: Mateusz Rzeszutek <[email protected]>
Resolves #4092