-
-
Notifications
You must be signed in to change notification settings - Fork 916
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
Incompatible types: CAP#1 cannot be converted to AdditionalRoutePointDTO where CAP#1 is a fresh type-variable: CAP#1 extends RoutePointDTO from capture of ? #3576
Comments
@gkavv I see that you are using 1.3.1.Final. That is a really old version. Can you please try with the latest (1.5.5.Final) and let us know if it works? |
I updated the version to 1.5.5.Final, but now I see different kind of errors:
|
Have you followed our release notes? This looks like you are using a qualifier somewhere, but no such qualifier could be found. It used to be ignore when a qualifier couldn't be found, but we changed this to have a compile error.
Those kind of errors are there when Lombok is being used. Are you using Lombok? If yes have you added the |
Yes I have tried with both having this dependency and without it. The error is exact the same. |
Have a look at our FAQ about using MapStruct and Lombok together. I would suggest that you use the latest Lombok dependency as well.
The dependency is build by the Lombok team, not by the MapStruct team. It hasn't been updated because there is no need for it to be updated. If something is not being updated it does not mean that it is not maintained. If updating Lombok and using the Keep in mind that this is only for the "No implementation was created" error. The error about the qualifier is something else entirely, it has nothing to do with Lombok and everything to do with a mistake you have in your mappers |
Lombok is in the latest version already, but again the "No implementation was created" error still appears. |
I fixed the issue.
|
Expected behavior
Actual behavior
Steps to reproduce the problem
Currently my mapper is as shown below. It was working fine before upgrading to Java 21 and Spring boot 3.
I am using also Lombok 1.18.30
MapStruct Version
1.3.1.Final
The text was updated successfully, but these errors were encountered: