[omniORB] Possible problem with omniidl2 and module names

Craig Rodrigues rodrigc@mediaone.net
Wed, 29 Sep 1999 11:06:06 -0400


Hi,

I just tried something with omniidl2 in
omniORB 2.8.0, and
I suspect that it may violate one of the 
Scoping Rules of the CORBA 2.3 specification.

The following code compiles under omniidl2:

module a{

   interface a{
   }; 
};

However, section 3.15.2 of the CORBA 2.3
specification states:

"The name of an interface, value type, struct, union, 
 exception or a module may not be
 redefined within the immediate scope of the interface, value type,
 struct, union, exception, or the module. For example:

  module M {
    typedef short M; // Error: M is the name of the module

    interface I {
        void i (in short j); // Error: i clashes with the interface name I
    };
  };
"

Opinions?
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net