[omniORB] Error in CosNotification.idl

Duncan Grisby duncan at grisby.org
Thu Jul 21 18:30:25 BST 2005


On Tuesday 19 July, Joe Bronkema wrote:

> In omniORB 4.0.6, CosNotification.idl line 30 defines _EventType but
> then goes on to use EventType (without the underscore) elsewhere in
> the file and in other related IDL files.
> For seemingly obvious reasons, this causes the Java idl compiler to
> fail on that file.

It might seem obvious, but it's not. The bug is actually in the Java IDL
compiler.

eventtype is a keyword in CORBA 3. omniORB doesn't support that yet, but
it knows about the keywords, so if you try to create a type called
EventType, omniidl outputs a warning about a clash. To suppress the
warning, the definition of EventType is prefixed with an underscore.
That is a standard part of IDL that escapes identifiers clashing with
keywords.

See section 3.2.3.1 of the CORBA 2.6 or 3.0 spec.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list