From ee68fdb3fb8747b068011f0fe84b87bcfbbc8902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A5n=20Nguy=E1=BB=85n?= <59108692+tran4774@users.noreply.github.com> Date: Sun, 17 Nov 2024 01:13:31 +0700 Subject: [PATCH] Wrong index of ParameterizedType argument of Map when register type to be generated in JacksonCodeGenerator --- .../jackson/deployment/processor/JacksonCodeGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/resteasy-reactive/rest-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/JacksonCodeGenerator.java b/extensions/resteasy-reactive/rest-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/JacksonCodeGenerator.java index b822619d7bc9f..b06abe3deaf15 100644 --- a/extensions/resteasy-reactive/rest-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/JacksonCodeGenerator.java +++ b/extensions/resteasy-reactive/rest-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/JacksonCodeGenerator.java @@ -193,7 +193,7 @@ protected FieldKind registerTypeToBeGenerated(Type fieldType, String typeName) { } } if (pType.arguments().size() == 2 && typeName.equals("java.util.Map")) { - registerTypeToBeGenerated(pType.arguments().get(1)); + registerTypeToBeGenerated(pType.arguments().get(0)); registerTypeToBeGenerated(pType.arguments().get(1)); return FieldKind.MAP; }