RuedigerMoeller / fast-serialization

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

how to support native-image? #349

Open imgoby opened 9 months ago

imgoby commented 9 months ago

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

imgoby commented 9 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