Skip to content
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

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Sep 17, 2021

Resolves #4092

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

dependencyManagement/build.gradle.kts Outdated Show resolved Hide resolved

package io.opentelemetry.instrumentation.api.caching;

import io.opentelemetry.instrumentation.api.internal.shaded.caffeine2.cache.Caffeine;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@laurit laurit changed the title Use caffeine3 on jdk11 and caffein2 on older jdks Use caffeine3 on jdk11 and caffeine2 on older jdks Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CacheBuilder fails if jdk.unsupported module is not available
4 participants