Skip to content

Commit

Permalink
Rename DefaultMismatchedInputException to BuiltinMismatchedInputExcep…
Browse files Browse the repository at this point in the history
…tionMapper

(cherry picked from commit e9cddc0)
  • Loading branch information
geoand authored and gsmet committed Sep 10, 2024
1 parent a1d175f commit 17a508d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/rest.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ One solution for this case is to configure the following:
[source,properties]
----
quarkus.class-loading.removed-resources."io.quarkus\:quarkus-rest-jackson"=io/quarkus/resteasy/reactive/jackson/runtime/mappers/DefaultMismatchedInputException.class
quarkus.class-loading.removed-resources."io.quarkus\:quarkus-rest-jackson"=io/quarkus/resteasy/reactive/jackson/runtime/mappers/BuiltinMismatchedInputExceptionMapper.class
----
which essentially makes Quarkus ignore the `ExceptionMapper` for `MismatchedInputException` completely.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public class ResteasyReactiveJacksonProcessor {
private static final String[] EMPTY_STRING_ARRAY = new String[0];
private static final List<String> HANDLED_MEDIA_TYPES = List.of(MediaType.APPLICATION_JSON, APPLICATION_NDJSON,
APPLICATION_STREAM_JSON);
public static final String DEFAULT_MISMATCHED_INPUT_EXCEPTION = "io.quarkus.resteasy.reactive.jackson.runtime.mappers.DefaultMismatchedInputException";
public static final String DEFAULT_MISMATCHED_INPUT_EXCEPTION = "io.quarkus.resteasy.reactive.jackson.runtime.mappers.BuiltinMismatchedInputExceptionMapper";

@BuildStep
void feature(BuildProducer<FeatureBuildItem> feature) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public JavaArchive get() {
.addClasses(FroMage.class, FroMageEndpoint.class, DatabindExceptionMapper.class);
}
}).overrideConfigKey("quarkus.class-loading.removed-resources.\"io.quarkus\\:quarkus-rest-jackson\"",
"io/quarkus/resteasy/reactive/jackson/runtime/mappers/DefaultMismatchedInputException.class");
"io/quarkus/resteasy/reactive/jackson/runtime/mappers/BuiltinMismatchedInputExceptionMapper.class");

@Test
public void test() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.quarkus.runtime.LaunchMode;

@SuppressWarnings("unused")
public class DefaultMismatchedInputException
public class BuiltinMismatchedInputExceptionMapper
implements ExceptionMapper<com.fasterxml.jackson.databind.exc.MismatchedInputException> {

@Override
Expand Down

0 comments on commit 17a508d

Please sign in to comment.