Giter Site home page Giter Site logo

Unable to serialise exception about icepick HOT 4 CLOSED

ataulm avatar ataulm commented on July 23, 2024
Unable to serialise exception

from icepick.

Comments (4)

frankiesardo avatar frankiesardo commented on July 23, 2024

So JodaTime uses abstract classes internally. Something a good model object should avoid, but that's not the common case in Java. I can either provide a configure(Parcer p) {} static block for Icepick where a user can define custom serializer/deserializer or drop the Gson idea altogether and revert to version 2.2.1. I have to think about it. I can also treat Serializable and Parcelable objects as special cases and persist them as they are.

For now you can either use version 2.2.1 or persist a simpler data type (es. long for timestamp). Btw if you're using version 2.3 GalleryItem doesn't need to implement Parcelable interface, it's all taken care for you.

from icepick.

ataulm avatar ataulm commented on July 23, 2024

Ah it didn't implement parcelable yesterday - I added this morning and
removed icepick.

Am interested in re-adding it though because implementing parcelable seems
so fragile. I have a few more questions I'll ask on Monday :)
On 25 Jan 2014 17:22, "Frankie Sardo" [email protected] wrote:

So JodaTime uses abstract classes internally. Something a good model
object should avoid, but that's not the common case in Java. I can either
provide a configure(Parcer p) {} static block for Icepick where a user
can define custom serializer/deserializer or drop the Gson idea
altogether and revert to version 2.2.1. I have to think about it. I can
also treat Serializable and Parcelable objects as special cases and
persist them as they are.

For now you can either use version 2.2.1 or persist a simpler data type
(es. long for timestamp). Btw if you're using version 2.3 GalleryItemdoesn't need to implement
Parcelable interface, it's all taken care for you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-33294240
.

from icepick.

ataulm avatar ataulm commented on July 23, 2024

GalleryItem permalink

PostFragment permalink

from icepick.

frankiesardo avatar frankiesardo commented on July 23, 2024

I went for the Serializable and Parcelable special case.

from icepick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.