[omniORB] Identifier `ValueType' clashes with keyword `valuetype'

Roland Jesse jesse@mail.CS.Uni-Magdeburg.De
23 Feb 2001 15:27:55 +0100


Hi,

the following idl extract is compatible with current Mico but
obviously not with omniORB:

module Query {
   enum ValueType {
	  TypeBoolean, TypeChar, TypeOctet, TypeShort, TypeUShort, 
	  TypeLong, TypeULong, TypeFloat, TypeDouble, TypeString, 
	  TypeObject, TypeAny, TypeSmallInt, TypeInteger, TypeReal, 
	  TypeDoublePrecision, TypeCharacter, TypeDecimal, TypeNumeric,
	  TypeTuple, TypeNull
   };
};

"omniidl -bcxx vt.idl" complains:
vt.idl:2: Identifier `ValueType' clashes with keyword `valuetype'
omniidl: 1 error.

As "ValueType" is used inside the Query module it should never clash
with any other valuetype definitions (which are a "Missing feature"
regarding the User's Guide section 1.1.4 at least in omniORB 3.0.2
anyway).

Anyway around this error without renaming the enum?

Pointers are appreciated.

        Roland