From 990d1e32695bba3863df05760551f393456b542b Mon Sep 17 00:00:00 2001 From: Akash Kulkarni <113392464+akashkulk@users.noreply.github.com> Date: Wed, 17 Jul 2024 07:12:13 -0700 Subject: [PATCH] [Java CDK] Fix java interop compilation issue in Config/TransientErrorException. (#41996) --- airbyte-cdk/java/airbyte-cdk/README.md | 4 +++- .../airbyte-cdk/core/src/main/resources/version.properties | 2 +- .../io/airbyte/commons/exceptions/ConfigErrorException.kt | 2 ++ .../io/airbyte/commons/exceptions/TransientErrorException.kt | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/airbyte-cdk/java/airbyte-cdk/README.md b/airbyte-cdk/java/airbyte-cdk/README.md index 781556a81bd4..85d70f4e3833 100644 --- a/airbyte-cdk/java/airbyte-cdk/README.md +++ b/airbyte-cdk/java/airbyte-cdk/README.md @@ -171,9 +171,11 @@ corresponds to that version. ## Changelog ### Java CDK - + | +======= | Version | Date | Pull Request | Subject | |:------------|:-----------| :--------------------------------------------------------- |:---------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 0.41.6 | 2024-07-17 | [\#41996](https://github.com/airbytehq/airbyte/pull/41996) | Fix java interop compilation issue in Config/TransientErrorException. | | 0.41.5 | 2024-07-16 | [\#42011] (https://github.com/airbytehq/airbyte/pull/42011) | Async consumer accepts null default namespace | | 0.41.4 | 2024-07-15 | [\#41959](https://github.com/airbytehq/airbyte/pull/41959) | Allow setting `internal_message` in Config/TransientErrorException. Destinations: shorten error message for INCOMPLETE stream status. | | 0.41.3 | 2024-07-15 | [\#41680](https://github.com/airbytehq/airbyte/pull/41680) | Fix: CompletableFutures.allOf now handles empty list and `Throwable` | diff --git a/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties b/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties index d22a34e3fa2e..c27776f43479 100644 --- a/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties +++ b/airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties @@ -1 +1 @@ -version=0.41.5 +version=0.41.6 diff --git a/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/ConfigErrorException.kt b/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/ConfigErrorException.kt index 33e622a49c87..b7d0c1c185df 100644 --- a/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/ConfigErrorException.kt +++ b/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/ConfigErrorException.kt @@ -11,11 +11,13 @@ class ConfigErrorException : RuntimeException { val internalMessage: String val displayMessage: String + @JvmOverloads constructor(displayMessage: String, internalMessage: String = "") : super(displayMessage) { this.displayMessage = displayMessage this.internalMessage = internalMessage } + @JvmOverloads constructor( displayMessage: String, exception: Throwable?, diff --git a/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/TransientErrorException.kt b/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/TransientErrorException.kt index 7eb591801cca..2e8fa8366b38 100644 --- a/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/TransientErrorException.kt +++ b/airbyte-cdk/java/airbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/TransientErrorException.kt @@ -11,10 +11,12 @@ package io.airbyte.commons.exceptions class TransientErrorException : RuntimeException { val internalMessage: String + @JvmOverloads constructor(displayMessage: String, internalMessage: String = "") : super(displayMessage) { this.internalMessage = internalMessage } + @JvmOverloads constructor( displayMessage: String, exception: Throwable?,