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

Java 8 support #282

Open
steph4nc opened this issue Apr 25, 2022 · 2 comments
Open

Java 8 support #282

steph4nc opened this issue Apr 25, 2022 · 2 comments

Comments

@steph4nc
Copy link

The CacheLoader and AsyncCacheLoader fail on Java 8 projects. I see in the fork network, someone else ran into the same issue and this is the commit they added: BinaryMan32@badd0c3

However, I also see on Caffeine's releases page, that the new version 3 does not support Java 8 and to rather use version 2 for Java 8 support https://github.com/ben-manes/caffeine/releases/tag/v3.0.0

So potentially we need a version of Scaffeine that runs on the latest V3 and another version that runs on the latest V2 for Java 8.

@blemale
Copy link
Owner

blemale commented May 18, 2022

👋 Hi @steph4nc !
Contributions are welcome so feel free to submit a PR to fix this issue if you want.
I will not do it myself as I'm not using this project at work neither I work with Scala anymore.
BTW the Java baseline for recent caffeine version, ie 3.x, is Java 11.

@seeni-dev
Copy link

seeni-dev commented Aug 27, 2022

If it helps anyone, I downgraded scaffeine version to 4.1.0, which depends on 2.x of caffeine and it worked.
I was using basic features of Cache. So it didn't throw any problems. https://search.maven.org/artifact/com.github.blemale/scaffeine_2.12/4.1.0/jar

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

No branches or pull requests

3 participants