From 05dbbf28b39a10b3331da579607d7b51a2edbb1e Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Thu, 26 Oct 2023 10:22:13 +0200 Subject: [PATCH] fix: type inference fixed by bumping Sundrio to 0.101.2 see https://github.com/sundrio/sundrio/pull/431 Signed-off-by: Marc Nuri --- CHANGELOG.md | 1 + .../kubernetes/client/TypeInferenceTest.java | 16 +++++++--------- pom.xml | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 267ece8e1a6..cb5b97a97eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ #### Bugs * Fix #5501: [crd-generator] Fix fallback value of `Default` annotation in presence of multiple accessors +* Fix #5522: type inference fixed by bumping Sundrio to 0.101.2 (see https://github.com/sundrio/sundrio/pull/431) #### Improvements diff --git a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/TypeInferenceTest.java b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/TypeInferenceTest.java index cd570e34864..1fd3e0cf316 100644 --- a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/TypeInferenceTest.java +++ b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/TypeInferenceTest.java @@ -27,15 +27,13 @@ class TypeInferenceTest { - // Commented-out due to compilation failure - // TODO: Enable after #5522 is fixed - // @Test - // void typeInferenceWithLambda() { - // final ConfigMapDependentResource cdr = new ConfigMapDependentResource(); - // final DeploymentDependentResource ddr = new DeploymentDependentResource(); - // Arrays.asList(cdr, ddr).forEach(dr -> dr.reconcile()); - // Assertions.assertTrue(true); - // } + @Test + void typeInferenceWithLambda() { + final ConfigMapDependentResource cdr = new ConfigMapDependentResource(); + final DeploymentDependentResource ddr = new DeploymentDependentResource(); + Arrays.asList(cdr, ddr).forEach(dr -> dr.reconcile()); + Assertions.assertTrue(true); + } @Test void typeInferenceWithMethodReference() { diff --git a/pom.xml b/pom.xml index 62c21d60423..10add2174a4 100644 --- a/pom.xml +++ b/pom.xml @@ -90,7 +90,7 @@ UTF-8 - 0.101.1 + 0.101.2 3.12.12 3.12.1_1 1.15.0