Comments (8)
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.
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.
See also EsotericSoftware/kryo#543
from kryo-serializers.
Hi there,
any chance that this warning "Illegal reflective access by com.esotericsoftware.kryo.util.UnsafeUtil" will be fixed?
from kryo-serializers.
@RobertSermak this is not caused by kryo-serializers but kryo itself, see EsotericSoftware/kryo#543
from kryo-serializers.
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.
@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.
@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)
- Compatibility with JDK 10 HOT 1
- serializer for org.hibernate.proxy.HibernateProxy HOT 3
- Compatibility with open JDK 11 HOT 1
- Collections.SetFromMap gives null pointer exception in deserialization. HOT 2
- For Kryo-serializers 0.45, I see there is compatibility issue for with java 11.
- Unable to use SubListSerializers with JDK9 HOT 2
- Fail to deserialize lists created from guava's immutableCollection.asList()
- pulls in kryo v5 even though its supposed to be 4 HOT 1
- ImmutableMultimapSerializer does not properly handle EmptyImutableSetMultimap
- Another release depending on kryo-shaded 4.0.2 HOT 3
- 0.45.1 release? HOT 6
- Can't use version 0.45 with JDK11 if i have generics in my code
- Kryo exception for com.google.common.collect.RegularImmutableBiMap
- Kryo v5 support HOT 10
- Support for Ion data type HOT 1
- Compatibility with JDK 17 HOT 6
- Does kryo have a way to support bean adding and deleting fields
- Add support for missing Guava immutable types
- Is this repo still mantained? HOT 9
- Could not access source collection field in java.util.Collections$UnmodifiableCollection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kryo-serializers.