Skip to content

Improvement in Client.newRpcStub(...) : Constructor may not allow NULL values #259

Open
@longquanzheng

Description

In the current implementation, in order to get a "Mock" of the workflow class, we use the first constructor, and pass all null values into the constructor to create he mock instance.

final Object[] params = new Object[parameterCount];

However, this may be a problem if the constructor doesn't allow NULL values.
See the example of broken experience here: #260

This is usually not a problem because usually the iwf workflow only need to take in a list of state or its dependency.

An idea is to now rely on the real constructor -- i there is a way to create the instance bypassing the real class constructor

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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