Issue 5665: name disambiguation for AMI interface & poller names is confusing (corba-rtf) Source: Floorboard Software (Mr. Jonathan Biggar, jon@floorboard.com) Nature: Uncategorized Issue Severity: Summary: The rule for generating a unique AMI_ callback or poller name is to stuff additional "AMI_" strings until the name is unique. However, consider the following IDL: // IDL module M { interface A { }; interface AMI_A { }; }; this apparently maps to the implied IDL: // implied IDL module M { interface A { }; interface AMI_AMI_A { // callback interface for A }; interface AMI_A { }; interface AMI_AMI_AMI_A { // callback interface for AMI_A }; }; however, if I switch the order of declaration of A and AMI_A, the names of the associated callback interfaces change. Not only that, but if I split the IDL into two files: // File 1 module M { interface A { }; }; // File 2 module M { interface AMI_A { }; }; and try to compile them separately, the generated code will fail. I don't think there is any solution to this problem other than to declare it an error to use an IDL identifier that begins with "AMI_" if it causes a name clash. The same problem applies to the AMI poller valuetypes. Resolution: Resolution: Insert the requirement that any IDL that is meant to be used for AMI should not have any Revised Text: In formal/02-06-01 make the following changes: In section 22.6 insert the following paragraph immediately following the first paragraph: " Due to the way in which identifier names are generated in the implied IDL, in order to avoid name clashes, any IDL that is meant to be used with Asynchronous Messaging must not contain any identifiers that have the string "AMI_" as a prefix." Actions taken: September 27, 2002: received issue April 28, 2003: closed issue Discussion: End of Annotations:===== Sender: jon@floorboard.com Date: Fri, 27 Sep 2002 18:04:25 -0700 From: Jonathan Biggar X-Mailer: Mozilla 4.79 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en To: issues@omg.org, corba-rtf@omg.org Subject: name disambiguation for AMI interface & poller names is confusing The rule for generating a unique AMI_ callback or poller name is to stuff additional "AMI_" strings until the name is unique. However, consider the following IDL: // IDL module M { interface A { }; interface AMI_A { }; }; this apparently maps to the implied IDL: // implied IDL module M { interface A { }; interface AMI_AMI_A { // callback interface for A }; interface AMI_A { }; interface AMI_AMI_AMI_A { // callback interface for AMI_A }; }; however, if I switch the order of declaration of A and AMI_A, the names of the associated callback interfaces change. Not only that, but if I split the IDL into two files: // File 1 module M { interface A { }; }; // File 2 module M { interface AMI_A { }; }; and try to compile them separately, the generated code will fail. I don't think there is any solution to this problem other than to declare it an error to use an IDL identifier that begins with "AMI_" if it causes a name clash. The same problem applies to the AMI poller valuetypes. -- Jon Biggar Floorboard Software jon@floorboard.com jon@biggar.org Reply-To: "Michi Henning" From: "Michi Henning" To: "Jonathan Biggar" , , Subject: Re: name disambiguation for AMI interface & poller names is confusing Date: Sun, 29 Sep 2002 10:42:18 +1000 Organization: Triodia Technologies X-Mailer: Microsoft Outlook Express 6.00.2800.1106 > I don't think there is any solution to this problem other than to > declare it an error to use an IDL identifier that begins with "AMI_" > if > it causes a name clash. > > The same problem applies to the AMI poller valuetypes. I would simply reserve all identifiers that begin with AMI -- that's the cleanest solution. Cheers, Michi. -- Michi Henning Ph: +61 4 1118-2700 Triodia Technologies http://www.triodia.com/staff/michi Date: Wed, 13 Nov 2002 16:04:05 -0500 From: Jishnu Mukerji Organization: Software Global Business Unit, Hewlett-Packard X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en To: corba-rtf@omg.org Subject: Issue 5665 Proposed resolution The following resolution will appear in a vote in the near future if there is no serious technical objection to it. Jishnu. ___________________________________________________________________________ Issue 5665: name disambiguation for AMI interface & poller names is confusing (corba-rtf) Click http://cgi.omg.org/issues/issue5665.txt for this issue's archive. Source: Floorboard Software (Mr. Jonathan Biggar, jon@floorboard.com) Nature: Uncategorized Issue Severity: Summary: see archive Resolution: Insert the requirement that any IDL that is meant to be used for AMI should not have any identifier that have the prefix "AMI_" Revised Text: In formal/02-06-01 make the following changes: In section 22.6 insert the following paragraph immediately following the first paragraph: " Due to the way in which identifier names are generated in the implied IDL, in order to avoid name clashes, any IDL that is meant to be used with Asynchronous Messaging must not contain any identifiers that have the string "AMI_" as a prefix." Actions taken: Incorporate changes and close issue.