Issue 4901: IDL keyword clash in CosNotification.idl (issues) Source: Memorial University of Newfoundland (Jeffrey Parsons, Ph.D., jeffreyp@mun.ca) Nature: Uncategorized Issue Severity: Summary: CosNotification.idl contains a struct named 'EventType', which clashes with the new CCM-related keyword 'eventtype'. Resolution: purely editorial issue Revised Text: Actions taken: March 5, 2002: received issue August 21, 2002: closed issue Discussion: End of Annotations:===== X-Sender: parsons@mail.cs.wustl.edu X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 05 Mar 2002 11:16:34 -0600 To: issues@omg.org From: Jeff Parsons Subject: IDL keyword clash in CosNotification.idl Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-UIDL: NHQ!!kMPd91b'!!^>(!! Hi, CosNotification.idl contains a struct named 'EventType', which clashes with the new CCM-related keyword 'eventtype'. thanks, Jeff Parsons Sender: jon@floorboard.com Message-ID: <3C850E03.85226639@floorboard.com> Date: Tue, 05 Mar 2002 10:27:15 -0800 From: Jonathan Biggar X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Juergen Boldt , issues@omg.org, orb_revision@omg.org Subject: Re: issue 4901 -- not assigned tro RTF, please advise References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: h27e9f;Ne9 > This is issue # 4901 > > IDL keyword clash in CosNotification.idl > > CosNotification.idl contains a struct named 'EventType', which > clashes with the new CCM-related keyword 'eventtype'. The solution to this one is so simple it should be handled editorially. All that needs to be done is to change "EventType" to "_EventType" throughout the IDL in CosNotification.idl and in the Notification Service specification, per section 3.2.3.1 of the CORBA spec. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Reply-To: "Michi Henning" From: "Michi Henning" To: , "Jeff Parsons" References: <5.1.0.14.0.20020305111341.02b18d80@mail.cs.wustl.edu> Subject: Re: IDL keyword clash in CosNotification.idl Date: Wed, 6 Mar 2002 05:59:56 +1000 Organization: Triodia Technologies MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Content-Type: text/plain; charset="iso-8859-1" X-UIDL: !"&!!C9Wd9<0Qe9OfBe9 > CosNotification.idl contains a struct named 'EventType', which > clashes with the new CCM-related keyword 'eventtype'. Just change the CosNotification IDL to use _EventType instead of EventType. That will fix it. Cheers, Michi. Reply-To: "Michi Henning" From: "Michi Henning" To: , , , "Juergen Boldt" References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> Subject: Re: issue 4901 -- not assigned tro RTF, please advise Date: Wed, 6 Mar 2002 06:02:17 +1000 Organization: Triodia Technologies MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Content-Type: text/plain; charset="iso-8859-1" X-UIDL: pA2!!DCCe9P-He9`0_!! > > IDL keyword clash in CosNotification.idl > > CosNotification.idl contains a struct named 'EventType', which > clashes with the new CCM-related keyword 'eventtype'. The fix for this is trivial (change EventType to _EventType). I think the core RTF could handle this as an editorial change to the Notification Service, seeing that the change is required because of CCM. Cheers, Michi. From: David W Forslund MIME-Version: 1.0 Message-ID: <15493.28483.756026.824651@tbp.acl.lanl.gov> Date: Tue, 5 Mar 2002 18:22:11 -0700 To: "Michi Henning" Cc: , , , "Juergen Boldt" Subject: Re: issue 4901 -- not assigned tro RTF, please advise In-Reply-To: <002f01c1c480$cff3bd80$2dfc65cb@coco> References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> <002f01c1c480$cff3bd80$2dfc65cb@coco> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: "David W.Forslund" User-Agent: SEMI/1.13.7 (Awazu) CLIME/1.13.6 (=?ISO-2022-JP?B?GyRCQ2YbKEI=?= =?ISO-2022-JP?B?GyRCJU4+MRsoQg==?=) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386-redhat-linux) Content-Type: text/plain; charset=US-ASCII X-UIDL: D91!!GnK!!;K*!!Q+Td9 The way I usually correct these is to put the module name in front of the struct so that it is put in the proper namespace. This gives the IDL compiler the correct context and avoids the nameclash without affecting any code. Dave Forslund Michi Henning writes: > > > > IDL keyword clash in CosNotification.idl > > > > CosNotification.idl contains a struct named 'EventType', which > > clashes with the new CCM-related keyword 'eventtype'. > > The fix for this is trivial (change EventType to _EventType). > I think the core RTF could handle this as an editorial change > to the Notification Service, seeing that the change is required > because of CCM. > > Cheers, > > Michi. > > Sender: jon@floorboard.com Message-ID: <3C857B2C.DC148E0C@floorboard.com> Date: Tue, 05 Mar 2002 18:13:00 -0800 From: Jonathan Biggar X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: "David W.Forslund" CC: Michi Henning , issues@omg.org, orb_revision@omg.org, components-ftf@omg.org, Juergen Boldt Subject: Re: issue 4901 -- not assigned tro RTF, please advise References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> <002f01c1c480$cff3bd80$2dfc65cb@coco> <15493.28483.756026.824651@tbp.acl.lanl.gov> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: c3Ge9>l&e9>8cd9_m&!! David W Forslund wrote: > > The way I usually correct these is to put the module name in front of > the struct so that it is put in the proper namespace. This gives the > IDL compiler the correct context and avoids the nameclash without > affecting any code. This shouldn't work. The IDL compiler should parse something like "A::B" as "A" "::" "B" and examine both "A" and "B" to see if they are keywords. So the fully qualified name "CosNotifcations::EventType" should still collide with the keyword "eventtype". -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Date: Tue, 05 Mar 2002 21:31:44 -0500 From: Jishnu Mukerji Organization: Hewlett-Packard Company X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Juergen Boldt Cc: orb_revision@omg.org, components-ftf@omg.org, andrew@omg.org Subject: Re: issue 4901 -- not assigned tro RTF, please advise References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: P0O!!T > This is issue # 4901 > > IDL keyword clash in CosNotification.idl > > CosNotification.idl contains a struct named 'EventType', which > clashes with the new CCM-related keyword 'eventtype'. > ================================================================ > > Juergen Boldt > Director, Member Services > > Object Management Group Tel. +1-781 444 0404 ext. 132 > 250 First Avenue, Suite 201 Fax: +1-781 444 0320 > Needham, MA 02494, USA Email: juergen@omg.org > URL: www.omg.org > > ================================================================ -- Jishnu Mukerji Senior Systems Architect SSO Staff, Hewlett-Packard Company 300 Campus Drive, MS 2E-62 Florham Park NJ 07932, USA +1 973 443 7528 jishnu_mukerji@hp.com X-Sender: u076663@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 05 Mar 2002 19:31:00 -0700 To: Jonathan Biggar From: David Forslund Subject: Re: issue 4901 -- not assigned tro RTF, please advise Cc: Michi Henning , issues@omg.org, orb_revision@omg.org, components-ftf@omg.org, Juergen Boldt In-Reply-To: <3C857B2C.DC148E0C@floorboard.com> References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> <002f01c1c480$cff3bd80$2dfc65cb@coco> <15493.28483.756026.824651@tbp.acl.lanl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-UIDL: F%&!![OO!!n\^!!^fd!! At 06:13 PM 3/5/2002 -0800, Jonathan Biggar wrote: David W Forslund wrote: > > The way I usually correct these is to put the module name in front of > the struct so that it is put in the proper namespace. This gives the > IDL compiler the correct context and avoids the nameclash without > affecting any code. This shouldn't work. The IDL compiler should parse something like "A::B" as "A" "::" "B" and examine both "A" and "B" to see if they are keywords. So the fully qualified name "CosNotifcations::EventType" should still collide with the keyword "eventtype". H'mm I would have thought that the name space would qualify the name so that they weren't the same. That is how several compilers work today. Perhaps I'm thinking of not keywords but simple name clashes. Would the behavior be different for that case? Thanks, Dave -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Sender: jon@floorboard.com Message-ID: <3C858132.4DA145C@floorboard.com> Date: Tue, 05 Mar 2002 18:38:42 -0800 From: Jonathan Biggar X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: David Forslund CC: Michi Henning , issues@omg.org, orb_revision@omg.org, components-ftf@omg.org, Juergen Boldt Subject: Re: issue 4901 -- not assigned tro RTF, please advise References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> <002f01c1c480$cff3bd80$2dfc65cb@coco> <15493.28483.756026.824651@tbp.acl.lanl.gov> <5.1.0.14.2.20020305192908.0b6b3d00@localhost> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: fbCe9"M5e9<9%!!fZid9 David Forslund wrote: > > At 06:13 PM 3/5/2002 -0800, Jonathan Biggar wrote: > >David W Forslund wrote: > > > > > > The way I usually correct these is to put the module name in front of > > > the struct so that it is put in the proper namespace. This gives the > > > IDL compiler the correct context and avoids the nameclash without > > > affecting any code. > > > >This shouldn't work. The IDL compiler should parse something like > >"A::B" as "A" "::" "B" and examine both "A" and "B" to see if they are > >keywords. So the fully qualified name "CosNotifcations::EventType" > >should still collide with the keyword "eventtype". > > H'mm I would have thought that the name space would qualify the name so that > they weren't the same. That is how several compilers work today. Perhaps > I'm thinking of not keywords but simple name clashes. Would the behavior > be different for that case? Yes, you can qualify names to avoid name clashes between names defined in different modules/interfaces/scopes. But identifier vs keyword parsing is done by the lexical scanner, which is too early to distinguish correctly that you wanted an identifier not a keyword. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Reply-To: "Michi Henning" From: "Michi Henning" To: "David W.Forslund" Cc: , , , "Juergen Boldt" References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org><002f01c1c480$cff3bd80$2dfc65cb@coco> <15493.28483.756026.824651@tbp.acl.lanl.gov> Subject: Re: issue 4901 -- not assigned tro RTF, please advise Date: Wed, 6 Mar 2002 21:20:36 +1000 Organization: Triodia Technologies MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Content-Type: text/plain; charset="iso-8859-1" X-UIDL: "U$e94k^d9oRIe9@ The way I usually correct these is to put the module name in front of > the struct so that it is put in the proper namespace. This gives the > IDL compiler the correct context and avoids the nameclash without > affecting any code. I don't think that can fix this particular case. The problem here is that an IDL identifier now suddenly is a keyword. No amount of qualifying that identifier will prevent the compilation error. The only way to escape from the keyword interpretation is to put an underscore in front of the new keyword. That forces that keyword to still be treated as an identifier. Cheers, Michi. X-Sender: andrew@192.67.184.65 Message-Id: In-Reply-To: <3C857F8F.689EAC0F@hp.com> References: <4.3.2.7.2.20020305130307.00e467e0@emerald.omg.org> Mime-Version: 1.0 Date: Wed, 6 Mar 2002 09:12:48 +0000 To: Jishnu Mukerji From: Andrew Watson Subject: Re: issue 4901 -- not assigned tro RTF, please advise Cc: Juergen Boldt , orb_revision@omg.org, components-ftf@omg.org, Linda Heaton Content-Type: text/plain; charset="us-ascii" X-UIDL: ?BM!!Ach!!QN3e9VO > This is issue # 4901 > > > > IDL keyword clash in CosNotification.idl > > > > CosNotification.idl contains a struct named 'EventType', which > > clashes with the new CCM-related keyword 'eventtype'. > This is really editorial. Just change all occurences of EventType to > _EventType and republish the CosNotification idl as a dot > release. The > generated code will remain the same. Agree we can take care of this as an editorial issue. > Perhaps Linda can take care of this? Linda - over to you. Thanks. Cheers, Andrew