Skip to content

Misleading error message #353

Closed
Closed
@erizzo

Description

@erizzo

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions