Skip to content

Fix: issue 4890 Method call resolution fails for variadic reference-type parameters with primitive arguments#4943

Merged
jlerbsc merged 3 commits intojavaparser:masterfrom
jlerbsc:master
Jan 4, 2026
Merged

Fix: issue 4890 Method call resolution fails for variadic reference-type parameters with primitive arguments#4943
jlerbsc merged 3 commits intojavaparser:masterfrom
jlerbsc:master

Conversation

@jlerbsc
Copy link
Copy Markdown
Collaborator

@jlerbsc jlerbsc commented Jan 4, 2026

Fixes #4890 .

Improves the resolution of methods declaring primitive varargs or encapsulated primitive types, and substitutes type variables from the declaring type into the method signature.

Checks if a primitive type can be boxed to a reference type (or vice versa). Also handles array types for variadic parameters and wildcards.

Handles the case where a method is inherited from a generic ancestor, and the method signature contains type variables from that ancestor that need to be replaced with the type variables (or concrete types) of the current declaring type.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 4, 2026

Codecov Report

❌ Patch coverage is 0% with 64 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.291%. Comparing base (2a591f1) to head (dd31730).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...parser/resolution/logic/MethodResolutionLogic.java 0.000% 64 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##              master     #4943       +/-   ##
===============================================
- Coverage     58.373%   58.291%   -0.083%     
- Complexity      2561      2562        +1     
===============================================
  Files            689       689               
  Lines          39612     39668       +56     
  Branches        7195      7214       +19     
===============================================
  Hits           23123     23123               
- Misses         13544     13600       +56     
  Partials        2945      2945               
Flag Coverage Δ
AlsoSlowTests 58.291% <0.000%> (-0.083%) ⬇️
javaparser-core 58.291% <0.000%> (-0.083%) ⬇️
javaparser-symbol-solver 58.291% <0.000%> (-0.083%) ⬇️
jdk-10 57.856% <0.000%> (-0.082%) ⬇️
jdk-11 57.855% <0.000%> (-0.085%) ⬇️
jdk-12 57.855% <0.000%> (-0.082%) ⬇️
jdk-13 57.855% <0.000%> (-0.085%) ⬇️
jdk-14 58.092% <0.000%> (-0.083%) ⬇️
jdk-15 58.092% <0.000%> (-0.080%) ⬇️
jdk-16 58.064% <0.000%> (-0.085%) ⬇️
jdk-17 58.218% <0.000%> (-0.083%) ⬇️
jdk-18 58.218% <0.000%> (-0.083%) ⬇️
jdk-8 57.701% <0.000%> (-0.082%) ⬇️
jdk-9 57.854% <0.000%> (-0.085%) ⬇️
macos-latest 58.283% <0.000%> (-0.083%) ⬇️
ubuntu-latest 58.278% <0.000%> (-0.083%) ⬇️
windows-latest 58.273% <0.000%> (-0.083%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...parser/resolution/logic/MethodResolutionLogic.java 0.000% <0.000%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fa6bbd...dd31730. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jlerbsc jlerbsc merged commit ef5de98 into javaparser:master Jan 4, 2026
33 of 35 checks passed
@jlerbsc jlerbsc added this to the next release milestone Jan 4, 2026
@jlerbsc jlerbsc added the PR: Fixed A PR that offers a fix or correction label Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Fixed A PR that offers a fix or correction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Method call resolution fails for variadic reference-type parameters with primitive arguments

1 participant