Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[#394] Don't use generics when marshalling collections #401

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

tristantarrant
Copy link
Member

Closes #394

* A temporary workaround for the issue. Full support for generic
  parameter types will need to be added to type mirroring
@tristantarrant tristantarrant requested a review from a team as a code owner January 10, 2025 17:42
@@ -719,7 +721,11 @@ protected void generateWriteMethodBody(IndentWriter iw, ProtoMessageTypeMetadata
mapFieldMetadata.getValue().getJavaTypeName()
);
} else {
iw.printf("java.util.Collection<%s>", fieldMetadata.getJavaTypeName());
if (useGenerics) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is always false.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, I wanted to keep the code around for when I do it properly

@ryanemerson ryanemerson merged commit 67873a1 into infinispan:main Jan 13, 2025
6 checks passed
@ryanemerson
Copy link
Contributor

Thanks @tristantarrant, please backport to 5.0.x

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Demarshalling doesn't work for collections of generic objects
2 participants