This is an automated email from the ASF dual-hosted git repository.
MartijnVisser pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.20 by this push:
new 05496bb0f06 [hotfix][python] Fix Java 8 compilation of PythonTypeUtils
05496bb0f06 is described below
commit 05496bb0f06174431440e40b9260ffc05a638de9
Author: Purushottam Sinha <[email protected]>
AuthorDate: Fri Oct 30 16:05:22 2026 +0530
[hotfix][python] Fix Java 8 compilation of PythonTypeUtils
Since 770a086545b, release-1.20 no longer compiles with Java 8:
PythonTypeUtils.java:[1414,45] incompatible types: java.lang.Object[]
cannot be converted to PythonTypeUtils.DataConverter[]
Through the raw TupleTypeInfo cast, javac 8 infers the result of
toArray(DataConverter[]::new) as Object[]. Cast to TupleTypeInfo<?>
instead of the raw type.
Generated-by: Claude Opus 5.5 (Claude Code)
---
.../main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java
b/flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java
index 9b0414ccf12..10dd949d2d2 100644
---
a/flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java
+++
b/flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java
@@ -1409,7 +1409,7 @@ public class PythonTypeUtils {
if (typeInformation instanceof TupleTypeInfo) {
DataConverter[] fieldDataConverters =
- Arrays.stream(((TupleTypeInfo)
typeInformation).getFieldTypes())
+ Arrays.stream(((TupleTypeInfo<?>)
typeInformation).getFieldTypes())
.map(fieldType ->
typeInfoDataConverter(fieldType, reuse))
.toArray(DataConverter[]::new);
return (DataConverter<IN, OUT>)