Skip to content

Conversation

@Damtev
Copy link
Member

@Damtev Damtev commented Dec 16, 2022

Description

In this PR implemented wrappers for several classes for concurrency:

  • java.lang.Thread
  • java.lang.ThreadGroup
  • java.util.concurrent.CompletableFuture
  • java.util.concurrent.ExecutorService
  • java.util.concurrent.CountDownLatch

Fixes #1534.

Note: keep in mind that java.util.concurrent.CompletableFuture is not constructible from an exception so to be able to construct it inside the wrapper UtCompletableFuture, we need a specific symbolic method toCompletableFuture.

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Regression and integration tests

Not applicable.

Automated Testing

New tests in the package org.utbot.examples.threads.

Manual Scenario

Tested on the closed customer project.

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@Damtev Damtev requested a review from CaelmBleidd December 16, 2022 08:15
@Damtev Damtev marked this pull request as draft December 16, 2022 12:09
@Damtev Damtev force-pushed the damtev/concurrent_package_wrappers branch 4 times, most recently from 46586f2 to 26edce2 Compare December 29, 2022 04:57
@Damtev Damtev force-pushed the damtev/concurrent_package_wrappers branch from 26edce2 to ab27cab Compare January 3, 2023 02:53
@Damtev Damtev marked this pull request as ready for review January 3, 2023 02:53
@Damtev Damtev merged commit 1172872 into main Jan 3, 2023
@Damtev Damtev deleted the damtev/concurrent_package_wrappers branch January 3, 2023 05:44
tamarinvs19 pushed a commit that referenced this pull request Jan 9, 2023
@tyuldashev tyuldashev added ctg-enhancement New feature, improvement or change request comp-symbolic-engine Issue is related to the symbolic execution engine labels Jan 24, 2023
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-symbolic-engine Issue is related to the symbolic execution engine ctg-enhancement New feature, improvement or change request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrappers for classes used in concurrency

5 participants