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

Misleading error message #353

Closed
erizzo opened this Issue Apr 5, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@erizzo

erizzo commented Apr 5, 2016

If I try to include a Collection object in my POJO (but intialize it as a concerete type such as ArrayList), JaVers complains with the following error:

JaversException: MANAGED_CLASS_MAPPING_ERROR given javaClass 'class java.util.ArrayList is mapped to java.util.ArrayList, expected ManagedType

For example, declared like this:
private Collection<String> names;

The actual problem, according to StackOverflow, is that JaVers does not support fields declared as the abstract Collection type. The error message should be more clear about this.

bartoszwalacik added a commit that referenced this issue Apr 10, 2016

#353
handling raw collections properties

bartoszwalacik added a commit that referenced this issue Apr 11, 2016

@bartoszwalacik

This comment has been minimized.

Member

bartoszwalacik commented Apr 12, 2016

fixed in 1.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment