Skip to content

Java: The Create Java Object and Invoke Java Method activities can't take empty arrays or variables initialized with "null" as arguments. #31

Description

@andraciorici

Environment
UiPath.Java.Activities 0.1.6774.30067-alpha
UiPath Studio 18.3.0-alpha.933

Preconditions

  1. Create a Java project.
  2. Create a Java Class with a constructor that takes a String[] as argument.
  3. Create a method (static or instance) that takes a String[] as argument.
  4. Package the project into a Jar file.

Steps to reproduce

  1. Set the java path in the Java Scope activity.
  2. Use a Create Java Object and a Invoke Java Method activities.
  3. In the Parameters section of both activities create a new String[] argument.
  4. In the Value field, put either {}, nothing or just leave it empty.

Expected results

  • Java Object is created successfully.
  • The method is executed successfully.

Actual results

  • Both activities fail

Please see attachments for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions