Skip to main content

IDL identifiers that differ only in case

  • September 2, 2014
  • 0 replies
  • 0 views

Product: OpenFusion JacORB

Version: v2.1.3.4 and later

 

Description:

The latest JacORB IDL compiler will throw an error for identifiers which only differ by their case. i.e. ResourceClass and resourceClass.

The CORBA spec section 3.2 says two identifiers which only differ by case are not allowed. ResourceClass and resourceClass should not be treated as being different. However, prior to OpenFusion Jacorb 2.1.3.4 this was allowed.

Resolution:

In order to comply with the CORBA specification section 3.2 a fix was implemented to not allow the use of case insensitive identifiers. This was fixed in 2.1.3.4

Fixed in 2.1.3.4
JAC332 - JacORB idl compiler compiles idl which contains two identifiers which differ only in the case of their characters, instead of throwing an error.

This means that IDL cannot now contain ResourceClass and resourceClass.

It maybe necessary to change the IDL in order for the files to compile properly.

Later this was amended in JacORB 2.3 so it would deal with such "sloppy" identifiers. This was done  by using the switch  -sloppy_identifiers.

-sloppy_identifiers permit illegal identifiers that differ in case (04-03-12:3.3.2) (default: off)

-sloppy_identifiers were only introduced in Jacorb 2.3. so unfortunately  the option of using that particular switch with Jacorb 2.1 is not available

It is recommended to upgrade to Jacorb 2.3 or later to take advantage of the -sloppy_identifiers switch.


#KnowledgeDocs
#jacorb.idlcase.sensitive
#OpenFusion