Skip to content

Serialization of List incorrect if property declared as plain java.lang.Object #8

@cowtowncoder

Description

@cowtowncoder

(as reported by Paweł Kowol on Jackson users list)


If a List (or other Collection) is value of a non-Collection property, like so:

public class Bean {
  public Object list;
}

it will not be serialized correctly. This is most likely due to special handling of Collection types, which is triggered based on declared type of property (since it must be added statically when constructing bean serializers). Will need to see if this can be improved.

Metadata

Metadata

Assignees

Labels

has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions