Skip to content
This repository was archived by the owner on Jun 16, 2018. It is now read-only.
This repository was archived by the owner on Jun 16, 2018. It is now read-only.

Patch which adds to a collection instantiates wrong type #15

Open
@martypitt

Description

@martypitt

(Possibly related to #14)

Given:

public class Project implements Serializable {
    @Id
    String id;

    List<Story> stories = Lists.newArrayList();
}

applying the following patch:

[{"op":"add","path":"/stories/0","value":{"id":"story1420381381217.764656"}}]

I expect that an instance of Story is created, and added to the stories list. Instead, an instance of Project is created, and added to the stories list (which will later result in a casting exception)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions