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
- Create a Jar that contains a class with a Generic method. ex:
public static T staticReturnSelf(T a) {
return a;
}
- Launch UiPath Studio and get the latest Java activities package.
- 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
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
public static T staticReturnSelf(T a) {
return a;
}
Expected results:
Actual results: