Coder Social home page Coder Social logo

JDK16 compatibility issues about lagom HOT 5 OPEN

schrepfler avatar schrepfler commented on June 15, 2024
JDK16 compatibility issues

from lagom.

Comments (5)

Randerspl avatar Randerspl commented on June 15, 2024 1

I know that cassandra just "recently" supports java 11 in new 4.x version (currently 4.0-RC2). I think lagom uses in development mode cassandra 3.x which is not working on jdk 11 and should not work on 16 either

from lagom.

schrepfler avatar schrepfler commented on June 15, 2024

I know that cassandra just "recently" supports java 11 in new 4.x version (currently 4.0-RC2). I think lagom uses in development mode cassandra 3.x which is not working on jdk 11 and should not work on 16 either

That's great observation, I wasn't sure if it's vanilla Cassandra or embedded C* or embedded Kafka. There was also conversation in extracting this part of the maven lifecycle to use testcontainers.

from lagom.

ignasi35 avatar ignasi35 commented on June 15, 2024

I think lagom uses in development mode cassandra 3.x which is not working on jdk 11 and should not work on 16 either

A lagom build runs tests in both JDK8 and JDK11. A user with JDK11 can develop lagom services and user lagom's runAll to start them and run the embedded Cassandra.

from lagom.

ignasi35 avatar ignasi35 commented on June 15, 2024

JDK 16 is not LTS so it's not on the roadmap to support it.

Supporting JDK17, OTOH is another matter. At the moment, lagom doesn't support JDK17 because play doesn't support it either.

When that happens, the most likely suggestion would be to not use the embedded Cassandra in dev mode ( aka runAll) and, instead, run Cassandra manually on a container in the developer machine.

from lagom.

gabizou avatar gabizou commented on June 15, 2024

For what it’s worth, I’ve found that it’s the Cassandra driver using good old reflection that newer Java versions no longer support unless you explicitly enable via —illegal-access=permit as a jvm flag in maven. I’ve had this work in development, but not tested in a full production environment (yet).

from lagom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.