From 205b176009fe9b11f1a9077b2880d02c80c4c205 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 12:41:49 +0000 Subject: [PATCH 1/2] build(deps): bump com.fasterxml.jackson.core:jackson-databind Bumps [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson-databind) from 2.15.4 to 2.18.11. - [Commits](https://github.com/FasterXML/jackson-databind/compare/jackson-databind-2.15.4...jackson-databind-2.18.11) --- updated-dependencies: - dependency-name: com.fasterxml.jackson.core:jackson-databind dependency-version: 2.18.11 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- wayang-api/wayang-api-scala-java/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayang-api/wayang-api-scala-java/pom.xml b/wayang-api/wayang-api-scala-java/pom.xml index efc1cd3ee..12e5f69e4 100644 --- a/wayang-api/wayang-api-scala-java/pom.xml +++ b/wayang-api/wayang-api-scala-java/pom.xml @@ -145,7 +145,7 @@ com.fasterxml.jackson.core jackson-databind - 2.15.4 + 2.18.11 com.fasterxml.jackson.module From 5a6ee6435759f97abd75d779572dad2416165a14 Mon Sep 17 00:00:00 2001 From: 2pk03 Date: Mon, 19 Oct 2026 09:32:49 +0200 Subject: [PATCH 2/2] Align Scala API Jackson dependencies --- wayang-api/wayang-api-scala-java/pom.xml | 10 ++++- .../wayang/api/JacksonCompatibilityTest.java | 42 +++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 wayang-api/wayang-api-scala-java/src/test/java/org/apache/wayang/api/JacksonCompatibilityTest.java diff --git a/wayang-api/wayang-api-scala-java/pom.xml b/wayang-api/wayang-api-scala-java/pom.xml index 12e5f69e4..fb064a12f 100644 --- a/wayang-api/wayang-api-scala-java/pom.xml +++ b/wayang-api/wayang-api-scala-java/pom.xml @@ -33,11 +33,19 @@ org.apache.wayang.api + 2.18.11 1.0.0 + + com.fasterxml.jackson + jackson-bom + ${jackson.version} + pom + import + org.apache.wayang wayang-commons @@ -145,7 +153,7 @@ com.fasterxml.jackson.core jackson-databind - 2.18.11 + ${jackson.version} com.fasterxml.jackson.module diff --git a/wayang-api/wayang-api-scala-java/src/test/java/org/apache/wayang/api/JacksonCompatibilityTest.java b/wayang-api/wayang-api-scala-java/src/test/java/org/apache/wayang/api/JacksonCompatibilityTest.java new file mode 100644 index 000000000..f8ca5d53c --- /dev/null +++ b/wayang-api/wayang-api-scala-java/src/test/java/org/apache/wayang/api/JacksonCompatibilityTest.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.wayang.api; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.module.scala.DefaultScalaModule; +import org.junit.jupiter.api.Test; +import scala.Tuple2; + +import static org.junit.jupiter.api.Assertions.assertEquals; + +class JacksonCompatibilityTest { + + @Test + void scalaTupleRoundtrip() throws Exception { + ObjectMapper mapper = new ObjectMapper().registerModule(new DefaultScalaModule()); + Tuple2 value = new Tuple2<>("count", 42); + + String json = mapper.writeValueAsString(value); + Tuple2 restored = mapper.readValue( + json, new TypeReference>() { }); + + assertEquals(value, restored); + } +}