testng-team / testng-team/testng-asserts
Getting Ambiguous method overloading for method org.testng.Assert.assertEquals() in Groovy version 3.0.19
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Ambiguous method overloading for method org.testng.Assert#assertEquals. Cannot resolve which method to invoke for [class java.lang.Integer, class java.lang.Integer] due to overlapping prototypes between: [int, class java.lang.Integer] [class java.lang.Integer, int]
Code is -
List listOfClassFields = MyClass.classMethod("CO").read()
Assert.assertEquals(7,listOfClassFields.size())
Same code was working in groovy version 2.5.7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the org.testng.Assert.assertEquals call with Groovy 3.0.19 using Integer values, then compare the same code under Groovy 2.5.7. Start from the overloaded assertEquals entry point; done means the reported call has an unambiguous, verified behavior and the version difference is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100