I’m getting a `no valid constructor` Java serializ...
# announcements
i
I’m getting a
no valid constructor
Java serialization exception for this class:
Copy code
class WaypointIndex<ItemType : Any>(
        val distance: (Two<ItemType>) -> Double,
        val waypoints: List<Waypoint<ItemType>>,
        val lookAhead: Int = 100,
        val vectorLookAhead: Int = lookAhead * 10
) { ... }
What kind of constructor do I need to give it for it to work?