[Dubbo-2178] Supporting Java 8 Date/Time type when serializing with Kryo #2178 #2208
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
修复 #2178 对于空构造函数的 kryo 序列化问题
Brief changelog
写了一个 kryo 的拓展类,增强 kryo 序列化能力
Verifying this change
包含单元测试,测试全部通过
Way
由于 kryo 工具在作对象序列化的时候会调用到对象的默认构造方法,但是对于 LocalDateTime 这一类的类没有默认构造方法导致序列化失败。
对 kryo 的序列化类进行拓展,对于这一些特殊类,在它无法找到对应的序列化器,可以使用反射工厂生成对应的默认构造函数。
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX
. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests
&mvn clean test-compile failsafe:integration-test
to make sure unit-test and integration-test pass.