Abhitocode opened a new pull request, #7196: URL: https://github.com/apache/incubator-kie/pull/7196
A process variable declared as a raw collection (`java.util.List` with no type argument) failed the build with `uses collection without type information`, in both `ReflectionProtoGenerator` and `JandexProtoGenerator`. Such a field is now mapped to `repeated kogito.Serializable` (with `kogito_java_class` set to the declared collection type) and a warning is logged at build time. Changes: - `ReflectionProtoGenerator`, `JandexProtoGenerator`: map untyped collections to `repeated kogito.Serializable` instead of throwing. - `AbstractProtoGeneratorTest`: `collectionWithoutTypeProto` now checks the generated field, added `modelWithCollectionWithoutTypeField` with a new `ListProcessModel` test class, registered in `JandexTestUtils` so both generators are covered. - `ProcessCodegenTest`: new test with a raw `java.util.List` variable (`UntypedCollectionVariableProcess.bpmn2`). - `JsonSchemaGeneratorTest`: raw collection field is kept in the schema as an array. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
