Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andraciorici opened this issue Nov 9, 2018 · 0 comments
Open

Comments

@andraciorici
Copy link
Member

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
VladNicula24S added a commit to twsoftr/Community.Activities that referenced this issue Dec 4, 2020
VladNicula24S added a commit to twsoftr/Community.Activities that referenced this issue Dec 7, 2020
adrian-zanescu pushed a commit that referenced this issue Dec 8, 2020
* Fix for issue #51

* Update on fix for Issue 51

* Added tests for Java Invoker timeout

* Fix for issue #31 on empty array

* fix for #31 for null parameters

* fix issue with comparison of parameter types

* implemented typed null solution for #31

* small fix for array indexing #31

* TestCases for issues #30 and #31

* Unit Tests of Generic Methods for issues #30 and #31

* merged

* TestProgram.jar refactor

* Removed unused

* updated

* Changes

* changes

* done

* Suppressions

* Bug fixes

* Fixed comments

* recompiled JAR file

Co-authored-by: alcxs <[email protected]>
Co-authored-by: petcua1 <[email protected]>
Co-authored-by: Vlad Nicula <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants