Issue 4986: IDL3 keyword "eventtype" conflicts with struct "CosNotification::EventType (components-ftf) Source: Tech-X (Dr. Nanbor Wang, nanbor(at)txcorp.com) Nature: Uncategorized Issue Severity: Summary: The "eventtype" keyword defined in Section 3.2.4 of the "CORBA 3.0 New Components Chapters" (ptc/2001-11-03) will make the Notification Service IDL un-compilable because Notification Service defines a struct called "EventType" in Section 3.1 of formal/00-06-20. I guess one of the specs will have to change. Resolution: see above Revised Text: Change all occurrences of EventType by _EventType in the latest Notification Service Specification. Actions taken: March 18, 2002: received issue December 11, 2002: closed issue Discussion: Resolution: The Notification Service IDL defined in formal/00-06-20 could not be compiled with a CORBA 3.0 IDL compiler because the identifier EventType is now interpreted as the eventtype keyword. In OMG IDL, the only way to escape from the keyword interpretation is to put an underscore in front of identifiers. The generated code will remain the same. End of Annotations:===== To: issues@omg.org Subject: New IDL3 keyword "eventtype" conflicts with struct "CosNotification::EventType" From: Nanbor Wang Date: 18 Mar 2002 15:54:04 -0600 Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-UIDL: ,[[d9U[3e9co2!!4??!! Hi, Not sure if anyone has reported the issue. Anyway, here is it. The "eventtype" keyword defined in Section 3.2.4 of the "CORBA 3.0 New Components Chapters" (ptc/2001-11-03) will make the Notification Service IDL un-compilable because Notification Service defines a struct called "EventType" in Section 3.1 of formal/00-06-20. I guess one of the specs will have to change. Thanks, nanbor -- Nanbor Wang Date: Mon, 18 Mar 2002 17:10:57 -0500 From: "Manfred R. Koethe" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Nanbor Wang CC: issues@omg.org Subject: Re: New IDL3 keyword "eventtype" conflicts with struct "CosNotification::EventType" References: Content-Transfer-Encoding: 7bit X-Loop-Detect: 1 Content-Type: text/plain; charset=us-ascii; format=flowed X-UIDL: )0Z!!Km5!!G[od907F!! The EventType structure needs to be escaped with an "_" (Underscore). Andrew,Jishnu: Maybe you should create a "10-pack of Underscores" as response to the recently observable high demand in that escape character... :-) Manfred Nanbor Wang wrote: Hi, Not sure if anyone has reported the issue. Anyway, here is it. The "eventtype" keyword defined in Section 3.2.4 of the "CORBA 3.0 New Components Chapters" (ptc/2001-11-03) will make the Notification Service IDL un-compilable because Notification Service defines a struct called "EventType" in Section 3.1 of formal/00-06-20. I guess one of the specs will have to change. Thanks, nanbor -- Nanbor Wang -- ___________________ / Manfred R. Koethe \_____________________________________ 88solutions E-Mail: koethe@88solutions.com 37 Mague Avenue Tel: +1 (617) 916 8556 Newton, MA 02465-1553 FAX: +1 (617) 916 5887 U.S.A. _____________________________"We make your business flow"_ Date: Mon, 18 Mar 2002 17:08:18 -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: Nanbor Wang , Andrew Watson , linda@omg.org, Juergen Boldt Cc: issues@omg.org Subject: Re: New IDL3 keyword "eventtype" conflicts with struct "CosNotification::EventType" References: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-UIDL: 1Pi!!LL_d9S;Vd9f'`!! Nanbor Wang wrote: > > Hi, > > Not sure if anyone has reported the issue. Anyway, here is it. > > The "eventtype" keyword defined in Section 3.2.4 of the "CORBA 3.0 New > Components Chapters" (ptc/2001-11-03) will make the Notification > Service IDL un-compilable because Notification Service defines a > struct called "EventType" in Section 3.1 of formal/00-06-20. > > I guess one of the specs will have to change. > > Thanks, > > nanbor Nanbor, Thanks for bringing this to our attention. This gets fixed by changing all occurences of the struct name in CosNotification to _EventType, to break the conflict, as described in Core Chapter 3. The generated code will continue to be the same as before. Linda, Andrew, another one. I suggest that we collect these until the Yokohama meeting and do all the editorial changes of this nature in one fell swoop after that. Juergen, would it be possible to create a category called CORBA_editorial or something like that and place all these issues there so that we do not lose them? Thanks, Jishnu Mukerji Chair CORBA Core RTF -- 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