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 Create Java Object and Invoke Java Method activities can't take empty arrays or variables initialized with "null" as arguments. #31

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

Comments

@andraciorici
Copy link
Member

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.

alcxs added a commit to twsoftr/Community.Activities that referenced this issue Nov 25, 2020
alcxs added a commit to twsoftr/Community.Activities that referenced this issue Nov 26, 2020
alcxs added a commit to twsoftr/Community.Activities that referenced this issue Dec 2, 2020
alcxs 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 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