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

Improve resolution of callees in EtsApplicationGraph #263

Open
wants to merge 1 commit into
base: neo
Choose a base branch
from

Conversation

Lipen
Copy link
Collaborator

@Lipen Lipen commented Aug 16, 2024

This PR improves the resolution of callees in EtsApplicationGraph. In a perfect world, matching suitable methods by their signature would be enough, however in some cases the available signature is incomplete, e.g. enclosing class might be missing. In order to still be able to resolve such calls, we consequently try to resolve the (single) callee: first, by name only, and next, by name and class. If these lookups fail (for example, if there are still multiple methods with matching names and enclosing classes, which be in the case of a multi-file project), we simply fall-back to the default behavior and match by the whole signature. Overall, we still rely on the signature to uniquely represent a method.

@Lipen Lipen requested a review from rudolf101 August 16, 2024 14:21
Copy link
Contributor

Lifecycle test results

78 tests  ±0   78 ✅ ±0   1m 55s ⏱️ +2s
 7 suites ±0    0 💤 ±0 
 7 files   ±0    0 ❌ ±0 

Results for commit 1b89d92. ± Comparison against base commit 85e4d67.

Copy link
Contributor

Test results on JDK 19

   84 files  ±0     84 suites  ±0   15m 39s ⏱️ + 1m 29s
2 512 tests ±0  2 471 ✅ ±0  41 💤 ±0  0 ❌ ±0 
2 540 runs  ±0  2 499 ✅ ±0  41 💤 ±0  0 ❌ ±0 

Results for commit 1b89d92. ± Comparison against base commit 85e4d67.

Copy link
Contributor

Test results on JDK 11

   84 files  ±0     84 suites  ±0   16m 0s ⏱️ -28s
2 512 tests ±0  2 473 ✅ ±0  39 💤 ±0  0 ❌ ±0 
2 540 runs  ±0  2 501 ✅ ±0  39 💤 ±0  0 ❌ ±0 

Results for commit 1b89d92. ± Comparison against base commit 85e4d67.

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 46.15385% with 7 lines in your changes missing coverage. Please review.

Project coverage is 58.95%. Comparing base (85e4d67) to head (1b89d92).

Files Patch % Lines
...kotlin/org/jacodb/ets/graph/EtsApplicationGraph.kt 46.15% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                neo     #263      +/-   ##
============================================
+ Coverage     58.94%   58.95%   +0.01%     
- Complexity     2261     2262       +1     
============================================
  Files           314      314              
  Lines         18518    18528      +10     
  Branches       2956     2958       +2     
============================================
+ Hits          10915    10923       +8     
- Misses         6521     6522       +1     
- Partials       1082     1083       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Test results on JDK 8

   84 files  ±0     84 suites  ±0   21m 48s ⏱️ - 2m 53s
2 512 tests ±0  2 468 ✅ ±0  44 💤 ±0  0 ❌ ±0 
2 540 runs  ±0  2 496 ✅ ±0  44 💤 ±0  0 ❌ ±0 

Results for commit 1b89d92. ± Comparison against base commit 85e4d67.

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

Successfully merging this pull request may close these issues.

2 participants