Giter Site home page Giter Site logo

type error about icepick HOT 5 CLOSED

frankiesardo avatar frankiesardo commented on July 23, 2024
type error

from icepick.

Comments (5)

frankiesardo avatar frankiesardo commented on July 23, 2024

Looks like the code originally was

@Icicle
List<File> ... = new ArrayList<File>()

As icepick is complaining that it cannot serialize a java.util.List.

ArrayList implements Serializable, while List does not.
If you confirm me that the source code was originally

@Icicle
ArrayList<File> ... 

Then that's icepick bug and I'll have to doublecheck it

from icepick.

yaming116 avatar yaming116 commented on July 23, 2024

yes. code like this:

@Icicle
ArrayList<File> ... = new ArrayList<File>()

if we can show error logs in .java file, we will easy see error

from icepick.

frankiesardo avatar frankiesardo commented on July 23, 2024

Strange, in my sample application if I use

@Icicle
ArrayList<File> ...

It works correctly. Can you provide more information about it? Which icepick version are you using? There's a com.github.frankiesardo:icepick:2.2-SNAPSHOT snapshot version you may try as it is the most recent.
Also clean/rebuild your workspace may help in regenerating the compiled files.
If the error is still there would you be able to provide a sample project where you can reproduce the issue?

from icepick.

yaming116 avatar yaming116 commented on July 23, 2024

Use 2.0 , change to 2.1 i need update to many code.
I test it on 2.0, there don't have this error.

If we can show error logs in .java file, we will easy see error. like butterknife
If i use a error type view , i will see a error

but when i use icepick , i only find it like this:

error logs like top, i cann't find where it happened.

from icepick.

frankiesardo avatar frankiesardo commented on July 23, 2024

Version 2.2.1 comes with better error messages

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.