Skip to content

Add implementation of Serializable into AutoCompletePrediction$MatchedSubstring class #563

@danieldsf

Description

@danieldsf

Hello!

I am using Spring framework alongside Google Map Services and one of the features that you would like to suggest are the serialization of the class MatchedSubstring, which is located inside of the class AutoCompletePrediction.

So far the class above mentioned does not implement Serializable, so if I try to use cache features returning data from a model that has a composition with the AutoCompletePrediction class, an error similar to the following may occur:

Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: com.google.maps.model.AutocompletePrediction$MatchedSubstring

Once the class MatchedSubstring implements Serializable, it will be possible to use certain cache strategies that I am trying out.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions