Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassCastException #4

Closed
krzysiek-zgondek opened this issue Dec 20, 2015 · 1 comment
Closed

java.lang.ClassCastException #4

krzysiek-zgondek opened this issue Dec 20, 2015 · 1 comment

Comments

@krzysiek-zgondek
Copy link

Got:
@Commit
@default("-1")
void setProjectId(int project);
int getProjectId();

and now this:
int selected = getSettings().getProjectId();

equals to
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at android.app.SharedPreferencesImpl.getInt(SharedPreferencesImpl.java:240)

soarcn added a commit that referenced this issue Dec 20, 2015
@soarcn
Copy link
Owner

soarcn commented Dec 20, 2015

Default annotation is for getter
I can't reproduce this defect, check the testcase for more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants