diff --git a/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java b/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java index 63fed1c..77dac77 100644 --- a/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/fury/deployment/FuryProcessor.java @@ -5,6 +5,7 @@ import jakarta.ws.rs.RuntimeType; +import org.apache.fury.serializer.Serializer; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.DotName; @@ -56,7 +57,10 @@ void unremovableBeans(BuildProducer beanProducer) { public void registerClasses(FuryBuildTimeConfig configs, FuryBuildItem fury, List classes, FuryRecorder recorder) { for (FurySerializerBuildItem item : classes) { - recorder.registerClass(fury.getFury(), item.getClazz(), item.getClassId(), item.getSerializer()); + Class serializer = null; + if (item.getSerializer() != Serializer.class) + serializer = item.getSerializer(); + recorder.registerClass(fury.getFury(), item.getClazz(), item.getClassId(), serializer); } if (configs.registerClassNames().isPresent()) {