Skip to content

Java: The Invoke Java Method does cannot call Generic methods #30

Description

@andraciorici

Environment
UiPath.Java.Activities - 1.0.6787.19104-beta

Description
The Invoke Java Method does cannot call Generic methods
Please see attached log for more details.

Please note that if this is a limitation (due to the fact that in Java the type info in generics is lost after compilation), we should make sure to document it for customers.

Repro steps

  1. Create a Jar that contains a class with a Generic method. ex:
    public static T staticReturnSelf(T a) {
    return a;
    }
  2. Launch UiPath Studio and get the latest Java activities package.
  3. In a Java Scope use a Invoke Java Method to call the Generic Method.

Expected results:

  • The workflow executes successfully

Actual results:

  • AggregateException is thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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