-
Notifications
You must be signed in to change notification settings - Fork 827
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
Add an exception for extendedFieldName #763
base: master
Are you sure you want to change the base?
Conversation
@Mr14huashao: As I said in #759, we need a solution with minimal overhead. Ideally, the duplicate field check would be done only once when the serializer is first initialized. I think we should only log a warning so we do not break existing applications and force them to use |
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
@theigl Thank you for checking my code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mr14huashao: Sorry for the delay. I just reviewed your PR.
Please adjust your tests to use existing support from KryoTestCase
and change your tests to look like others in the same file.
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
6314632
to
36f99dd
Compare
36f99dd
to
40bcfae
Compare
src/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializer.java
Outdated
Show resolved
Hide resolved
test/com/esotericsoftware/kryo/serializers/CompatibleFieldSerializerTest.java
Outdated
Show resolved
Hide resolved
40bcfae
to
f152a70
Compare
@Mr14huashao: I'm currently trying to stabilize Kryo 5.0.0 and will merge only bug fix PRs in the near future. Let's revisit this after Kryo 5.0.1 has been released. |
@theigl Do I want to modify some content based on the current version? |
Add a test case about boolean field for #699