RuedigerMoeller / fast-serialization

FST: fast java serialization drop in-replacement
Apache License 2.0
1.58k stars 248 forks source link

how to support native-image? #349

Open imgoby opened 6 months ago

imgoby commented 6 months ago

Application integrates with native-image, while calling FSTConfiguration.asByteArray() method,thread is stoped. how to resolve?

imgoby commented 6 months ago

class file: FSTDefaultClassInstantiator code: ReflectionFactory.getReflectionFactory().newConstructorForSerialization(clazz, c);

resolve method (1)https://www.graalvm.org/latest/reference-manual/native-image/metadata/#serialization add serialization-config.json