apache / fury

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

Generated code fails to compile for class izumi.reflect.macrortti.LightTypeTag$ParsedLightTypeTag230Plus #1828

Open yoohaemin opened 1 month ago

yoohaemin commented 1 month ago

Search before asking

Version

0.8.0-SNAPSHOT https://github.com/apache/fury/commit/d8738f99963b69baec2bf1db7cc7c88ad3732748

Component(s)

Java, Other

Minimal reproduce step

https://github.com/yoohaemin/fury-bugreport/commit/9b074e61f9d612034437514dea1916224275a7e7

What did you expect to see?

  1. Generated code succeed compiling
  2. Fury uses the registered class to serialize/deserialize

What did you see instead?

  1. Code is generated, which probably means registered class is not used (?)
  2. Generated code fails to compile.

Anything Else?

No response

Are you willing to submit a PR?

yoohaemin commented 1 month ago

related: https://github.com/apache/fury/issues/1806#issuecomment-2295215163

I understand the registered class problem now, it uses the serialization from the most concrete class, and does not look for superclass.

The generated code problem still exists, but is now low priority because I know how to register a custom serializer.

chaokunyang commented 1 month ago

@yoohaemin I can't reproduce your issue, could you try latest snapshot jar instead?