apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
3.12k stars 248 forks source link

fix(java): fix find constructor error in generated serializer class caused by duplicated class classloading for Fury #1948

Closed chaokunyang closed 4 days ago

chaokunyang commented 5 days ago

What does this PR do?

fix duplicate classloading in parent classloader.

Some classloader such as flink classloader can load class from children classloader. If fury is located in children classloader, but we are serializing a class in such parent class, the parent class will load Fury class again, which caused two Fury clases loaded.

Related issues

Closes #1947

Does this PR introduce any user-facing change?

Benchmark