Thread
#serialization
    Evilthreads669966

    Evilthreads669966

    1 year ago
    I'm trying to serialize lambdas into a Room database table. I've been working on it for a week and have switched from Gson to kotlinx serialization. Has anyone ever come across this. I've tried doing SAM, FunctionalInteface from jdk, and an open class with an open function. Kotlin states that lambdas are serializable by default. I'm performing the serialization for the function types inside of a Converters class
    s

    sandwwraith

    1 year ago
    Lambda's are only
    <http://java.io|java.io>.Serializable
    and generally can only be serialized by java's native serialization framework and not any other
    Evilthreads669966

    Evilthreads669966

    1 year ago
    Thank you.