Skip to content

Bug in MethodDataFetcher:buildArg #262

Closed
@singh-sardar

Description

@singh-sardar

I'm using version 8.2 and writing a mutation that takes an Object as argument. After digging around for a while i found out #78 applies to my case (Documentation must be improved).

I have a class that has 2 constructors, first one with no args and a second one that take a HashMap to initialize object fields as per #78 . Even if I had the constructor that takes the HashMap as argument it wasn't being called.

After a bit of debugging i found out that the constructors order matter 'cause the code just checks the first constructor and if it's the HashMap one, call it else call the default constructor.

So, in oder to solve the bug there must be added a loop that search in all the class constructors if the HashMap one exists, if it don't it should call the default one. The code must be added in MethodDataFetcher:buildArg.

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