Skip to content

Commit 1659969

Browse files
authored
Merge pull request #883 from k163377/fix-exception
Raise the deprecation level to error for the `MissingKotlinParameterException` secondary constructor
2 parents f8921c1 + bb4b44c commit 1659969

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

release-notes/CREDITS-2.x

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ WrongWrong (@k163377)
2929
# 2.18.0 (26-Sep-2024)
3030

3131
WrongWrong (@k163377)
32+
* #883: Raise the deprecation level to error for the MissingKotlinParameterException secondary constructor
3233
* #869: Replaced Enum.values with Enum.entries
3334
* #818: Optimize the search process for creators
3435
* #817: Fixed nullability of convertValue function argument

release-notes/VERSION-2.x

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Co-maintainers:
1717
------------------------------------------------------------------------
1818

1919
2.19.0 (not yet released)
20-
20+
#883: The deprecation level has been raised to error for the `MissingKotlinParameterException` secondary constructor.
21+
This is a problematic process that has been marked as deprecated for a very long time and will be removed in 2.20 or later.
2122
#878: Fixed a problem where settings like `@JsonSetter(nulls = AS_EMPTY)` were not being applied when the input was `undefined`.
2223
#869: By using Enum.entries in the acquisition of KotlinFeature.defaults, the initialization load was reduced, albeit slightly.
2324
#861: Kotlin has been upgraded to 1.9.24.

src/main/kotlin/com/fasterxml/jackson/module/kotlin/Exceptions.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ class MissingKotlinParameterException(
3232
processor: JsonParser? = null,
3333
msg: String
3434
) : MismatchedInputException(processor, msg) {
35-
@Deprecated("Use main constructor", ReplaceWith("MissingKotlinParameterException(KParameter, JsonParser?, String)"))
35+
@Deprecated(
36+
"Use main constructor, ",
37+
ReplaceWith("MissingKotlinParameterException(KParameter, JsonParser?, String)"),
38+
DeprecationLevel.ERROR,
39+
)
3640
constructor(
3741
parameter: KParameter,
3842
processor: Closeable? = null,

0 commit comments

Comments
 (0)