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

Misleading error message #353

erizzo opened this issue Apr 5, 2016 · 1 comment

Misleading error message #353

erizzo opened this issue Apr 5, 2016 · 1 comment


Copy link

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
handling raw collections properties
Copy link

fixed in 1.6.1

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

No branches or pull requests

2 participants