maksaska commented on code in PR #12200:
URL: https://github.com/apache/ignite/pull/12200#discussion_r2233893068


##########
modules/codegen2/src/main/java/org/apache/ignite/internal/MessageSerializerGenerator.java:
##########
@@ -455,6 +467,18 @@ else if (sameType(type, 
"org.apache.ignite.internal.processors.affinity.Affinity
             else if (assignableFrom(type, type(MESSAGE_INTERFACE)))
                 returnFalseIfReadFailed(name, "reader.readMessage");
 
+            else if (assignableFrom(erasedType(type), 
erasedType(Collection.class.getName())) &&
+                !assignableFrom(erasedType(type), 
erasedType(Set.class.getName()))) {
+                List<? extends TypeMirror> typeArgs = 
((DeclaredType)type).getTypeArguments();
+
+                assert typeArgs.size() == 1;
+
+                
imports.add("org.apache.ignite.plugin.extensions.communication.MessageCollectionItemType");

Review Comment:
   Yep



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to