https://kotlinlang.org logo
p

Phil Richardson

09/18/2022, 2:39 PM
I was wondering when stabilised, if the new MetaSerializable mechanism in Serialization would be viable approach for custom exception self-registration when used with the full-stack compiler plugin?
r

Robert Jaros

09/18/2022, 2:47 PM
I think it will be possible to do this. It should even be possible right now (but less performant) - the plugin could just search for all
@Serializable
classes inherited from
AbstractServiceException
and register them.
Please fill an issue with this feature
I've implemented
@KVServiceException
using MetaSerializable and fully automatic registration works perfectly. It will be available in the next release.
2 Views