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
{{ message }}
Repository navigation
DX Issue: Generated Message class name collides with quickfix.Message, causing confusion #1335
Code gen creates a class called Message for generated FIX messages. Core API already has quickfix.Message. Same simple name, different classes and no type relationship while being functionally adjacent.
This is confusing. Easy to import the wrong one, easy to mix them up when reading code. Found it unclear to developers the quickfix.Message is even available, while it being a powerful tool.
Suggest renaming the generated class to something more specific, e.g. MessageBase, GeneratedMessage.
Hmm, don't know how other users see this, but personally I usually develop against specific types of messages, e.g. fix44.ExecutionReport, and almost never use the general message.
changed the title [-]DX Issue: Generated Message class name collides with quickfix.Message, causing confusion[/-][+]DX Issue: Generated Message class name collides with `quickfix.Message`, causing confusion[/+]on Sep 27, 2026
If you are coding a QuickFixJ Application, thats a file that would import the top quickfixj package. You would also import the package with generated types. So I'd think many would ges into the situation where these two Message type names are colliding.
import quickfix.*;
import quickfix.fix44.*;
public class MyApp extends ApplicationAdapter {
// Compile error: reference to Message is ambiguous
public void fromApp(Message message, SessionID sessionId) {
// Explicit use of the generated one needs full qualification
quickfix.fix44.Message m44 = (quickfix.fix44.Message) message;
}
}
Activity
chrjohn commentedon Sep 27, 2026
Hmm, don't know how other users see this, but personally I usually develop against specific types of messages, e.g. fix44.ExecutionReport, and almost never use the general message.
[-]DX Issue: Generated Message class name collides with quickfix.Message, causing confusion[/-][+]DX Issue: Generated Message class name collides with `quickfix.Message`, causing confusion[/+]dpetillo commentedon Sep 28, 2026
If you are coding a QuickFixJ Application, thats a file that would import the top quickfixj package. You would also import the package with generated types. So I'd think many would ges into the situation where these two Message type names are colliding.