You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that quarkus does not handle the case when a subtype of the type declared in the method is passed to the method. Quarkus registers Message Codec's only specifically for classes declared with @ConsumeEvent annotation.
Expected behavior
LocalEventBusCodec must be registered for all subtypes of parameter type from method that is annotated with@ConsumeEvent
Actual behavior
Currently, LocalEventBusCodec registered only for concrete classes from method parameter.
To Reproduce
Steps to reproduce the behavior:
Create two classes, for example:
public class Event {
String a;
}
public class SubClassEvent extends Event {}
Send or publish object of SubClassEvent type via EventBus and see following message: java.lang.IllegalArgumentException: No message codec for type: SubClassEvent
Describe the bug
The problem is that quarkus does not handle the case when a subtype of the type declared in the method is passed to the method. Quarkus registers Message Codec's only specifically for classes declared with
@ConsumeEvent
annotation.Expected behavior
LocalEventBusCodec
must be registered for all subtypes of parameter type from method that is annotated with@ConsumeEvent
Actual behavior
Currently,
LocalEventBusCodec
registered only for concrete classes from method parameter.To Reproduce
Steps to reproduce the behavior:
SubClassEvent
type via EventBus and see following message:java.lang.IllegalArgumentException: No message codec for type: SubClassEvent
Quarkus version or git rev
1.11.1.Final
Additional context
I think the problem is in following implementation: EventBusCodecProcessor
The text was updated successfully, but these errors were encountered: