|
From: Oren M. <or...@qu...> - 2007-07-18 14:33:11
|
Yes. My mistake. I misread the original entry. No reason this =20 shouldn't work. --oren On Jul 18, 2007, at 9:27 AM, Lev Grevnin wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Oren, > > > > Hmm. I don=92t see anything illegal with this usage of NoPriceEntries =20= > field: I use it in the main body of the message. That=92s OK. Also =20 > one of its subcomponents try to use it for their own needs.That=92s =20= > OK as well. What is wrong with that? I am indeed having this =20 > field appear multiple times, but it appears in different =93scopes=94, = =20 > so to speak =96 under the global (or message) =93scope=94, and then = under =20 > the individual subcomponent =93scope=94. > > > > > > Lev Grevnin > Rates IT > > From: qui...@li... =20 > [mailto:qui...@li...] On Behalf Of =20= > or...@qu... > Sent: Wednesday, July 18, 2007 6:16 PM > To: qui...@li... > Subject: Re: [Quickfixj-users] a bug in quickfix generation code > > > > Why should it be? You cannot have a field appear more than once. =20 > You are forcing the NoPriceEntries field to appear multiple times. =20 > Why are the Price and Leg components not placed into the same group? > > > > --oren > > > > On Jul 18, 2007, at 2:49 AM, Lev Grevnin wrote: > > > > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > > QuickFIX/J Support: http://www.quickfixj.org/support/ > > Hello all. > > Perhaps this is a bug, or perhaps it=12s me who=12s not understanding =20= > something. > > Suppose I have the following xml message definition > > <message name=3D"FirmPrice" msgtype=3D"UN020" msgcat=3D"app"> > > <field name=3D"Symbol" required=3D"Y"/> > > <field name=3D"Size" required=3D"Y"/> > > <group name=3D"NoPriceEntries" required=3D"Y"> > > <component name=3D"PriceComponent" required=3D"Y"/> > > </group> > > <group name=3D"NoLegEntries" required=3D"N"> > > <component name=3D"LegComponent" required=3D"N"/> > > </group> > > </message> > > ... > > <component name=3D"LegComponent"> > > <field name=3D"Size" required=3D"Y"/> > > <field name=3D"Symbol" required=3D"Y"/> > > <group name=3D"NoPriceEntries" required=3D"Y"> > > <component name=3D"PriceComponent" required=3D"Y"/> > > </group> > > </component> > > The message generation creates a MessageFactory.java which has the =20 > following snippet of code in it: > > if("UN020".equals(msgType)) { > > switch(correspondingFieldID) { > > case liquidity.quickfix.fields.NoPriceEntries.FIELD: > > return new liquidity.quickfix.messages.FirmPrice.NoPriceEntries(); > > case liquidity.quickfix.fields.NoLegEntries.FIELD: > > return new liquidity.quickfix.messages.FirmPrice.NoLegEntries(); > > case liquidity.quickfix.fields.NoPriceEntries.FIELD: > > return new =20 > liquidity.quickfix.messages.FirmPrice.NoLegEntries.NoPriceEntries(); > > } > > } > > This cannot compile, obviously, as it has a duplicate case label. =20 > So, it seems like the usage of a field in both, the enclosing =20 > message and the nested component is not handled properly by the =20 > generated code. > > Any ideas? > > Thanks much!! > > Lev Grevnin > Rates IT > Deutsche Bank > > > --- > > This e-mail may contain confidential and/or privileged information. =20= > If you are not the intended recipient (or have received this e-mail =20= > in error) please notify the sender immediately and delete this e-=20 > mail. Any unauthorized copying, disclosure or distribution of the =20 > material in this e-mail is strictly forbidden. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for =20= > additional EU corporate and regulatory disclosures. > > ----------------------------------------------------------------------=20= > --- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/=20 > _______________________________________________ > > Quickfixj-users mailing list > > Qui...@li... > > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > > > --- > > This e-mail may contain confidential and/or privileged information. =20= > If you are not the intended recipient (or have received this e-mail =20= > in error) please notify the sender immediately and delete this e-=20 > mail. Any unauthorized copying, disclosure or distribution of the =20 > material in this e-mail is strictly forbidden. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for =20= > additional EU corporate and regulatory disclosures. > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/=20 > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users |