Skip to content

Argument is assigned a wrong index if an Object Argument is reused #117

@Jaime1129

Description

@Jaime1129

If an object argument with particular ObjectBuilderArg has been added into inputs before, putting another object argument with same ObjectBuilderArg won't modify the length of inputs.

this.inputs.put(search, objectBuilder.build());

In this case, this new object argument's index value is not necessarily equal to this.inputs.size() - 1. Instead, it should equal the old object's index.

argBuilder.value = (short) (this.inputs.size() - 1);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions