Giter Site home page Giter Site logo

Java 9 compatibility about kryo-serializers HOT 8 OPEN

magro avatar magro commented on August 15, 2024
Java 9 compatibility

from kryo-serializers.

Comments (8)

marcphilipp avatar marcphilipp commented on August 15, 2024 1

Any updates? Is it really necessary to use reflection for this?

@magro If you could outline a potential fix I might be able to submit a PR.

from kryo-serializers.

ddukki avatar ddukki commented on August 15, 2024

Looks like even with the core serializers, there is at least a warning. Is there a plan for moving away from the "illegal" reflections access?

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.esotericsoftware.kryo.util.UnsafeUtil (file:/C:/Users/user/.m2/repository/com/esotericsoftware/kryo/kryo/2.24.0/kryo-2.24.0.jar) to constructor java.nio.DirectByteBuffer(long,int,java.lang.Object)
WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.kryo.util.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

from kryo-serializers.

magro avatar magro commented on August 15, 2024

See also EsotericSoftware/kryo#543

from kryo-serializers.

RobertSermak avatar RobertSermak commented on August 15, 2024

Hi there,
any chance that this warning "Illegal reflective access by com.esotericsoftware.kryo.util.UnsafeUtil" will be fixed?

from kryo-serializers.

magro avatar magro commented on August 15, 2024

@RobertSermak this is not caused by kryo-serializers but kryo itself, see EsotericSoftware/kryo#543

from kryo-serializers.

lantian avatar lantian commented on August 15, 2024

Hi,

And what with:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by de.javakaffee.kryoserializers.UnmodifiableCollectionsSerializer to field java.util.Collections$UnmodifiableCollection.c
WARNING: Please consider reporting this to the maintainers of de.javakaffee.kryoserializers.UnmodifiableCollectionsSerializer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

? (openjdk 11).

from kryo-serializers.

magro avatar magro commented on August 15, 2024

@lantian At least that's just a warning and it should still work, right?

Getting rid of this would require quite some effort with a java9+ specific implementation and multi-release jars - at least to my current understanding of this stuff. PRs are of course welcome ;-)

from kryo-serializers.

lantian avatar lantian commented on August 15, 2024

@magro Yep, just a warning. But can be a problem (blocker) in future java releases.

As you said - this will require some effort to support jdk+ specific stuff.
It seems to me, that no one will do this better, then you ;)

Of course if you will have no time until blocker releases - we(community, maybe me, maybe someone) could create the PR.

from kryo-serializers.

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.