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

Fix TypeMapper UseReference not used when mapping a GenericType #1762

Merged

Conversation

desjoerd
Copy link
Contributor

@desjoerd desjoerd commented Dec 2, 2024

When using Generic TypeMappers the UseReference property was not used. This causes problems when using primitives (and string) which do not use references.

fixes #1302
fixes #1046

@desjoerd
Copy link
Contributor Author

desjoerd commented Dec 2, 2024

It should also fix #1046

@desjoerd
Copy link
Contributor Author

desjoerd commented Dec 2, 2024

Please let me know if you want me to fix anything, I was doubting a bit on the test, on whether it's clear enough.

@desjoerd
Copy link
Contributor Author

@RicoSuter did you have time to take a look at this? Let me know if I need to change anything or add more unit tests 🙂

@desjoerd desjoerd force-pushed the fix/generic-type-mapper-use-reference branch from b1f850d to 3b4e3ad Compare January 7, 2025 07:58
@desjoerd
Copy link
Contributor Author

desjoerd commented Jan 7, 2025

I was reviewing my code and I had some weird changes in the unit test. I fixed those. Hopefully it's now good to merge 👍

@desjoerd
Copy link
Contributor Author

desjoerd commented Jan 7, 2025

@lahma was this #1766 the problem with the build?

@lahma
Copy link
Collaborator

lahma commented Jan 8, 2025

Yes I believe so. Full framework expected mono to be installed and it is not in new ubuntu 24.04 runners.

@desjoerd
Copy link
Contributor Author

desjoerd commented Jan 8, 2025

Can you requeue the checks? Because I don't see the option. It would be really nice to have this PR merged, and maybe released together with the package updates.

@lahma
Copy link
Collaborator

lahma commented Jan 8, 2025

If you merge latest master to this branch there's a chance for build to succeed.

@desjoerd desjoerd force-pushed the fix/generic-type-mapper-use-reference branch from 3b4e3ad to 814c101 Compare January 8, 2025 09:21
@desjoerd
Copy link
Contributor Author

desjoerd commented Jan 8, 2025

I rebased, but github doesn't queue the PR build automatically. The workflow is awaiting approval.

@lahma lahma merged commit 6b85e07 into RicoSuter:master Jan 8, 2025
2 checks passed
@lahma
Copy link
Collaborator

lahma commented Jan 8, 2025

Thank you.

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.

Please support PrimitiveTypeMappers for generic types Type mapping a generic class to the wrapped type
2 participants