Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 970

Summary: CORBA IDL does not allow an argument to have the same name as a type.
Product: JacORB Reporter: Surendra <vasuvadlamudibabu>
Component: IDL compilerAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED INVALID    
Severity: major CC: jacorb
Priority: P5    
Version: 2.3.0   
Hardware: PC   
OS: Windows NT   

Description Surendra 2013-11-22 08:24:58 UTC
We upgraded from Corba 2.2.4 to 2.3.0.
In 2.2.4 it was working fine, we are facing below issue after upgrading:

Basically it is not allowing argument name as same as type(we give argument name as small letters where as type contains capital and small letters).

Ex:Below method is throwing error:
Short createErrorInfo(in  ErrorMsg_IF error, out ErrorInfo errorinfo );

Error msg:

Error: In operation com.manh.wmos.services.corba.ErrorInfoIF.createErrorInfo argument errorInfo clashes with type com.manh.wmos.services.corba.ErrorInfoIFPackage.ErrorInfo
Comment 1 Nick Cross 2013-11-24 07:59:57 UTC
That is to comply with the corba spec. You could using the -sloppy* options to permit some illegal IDL (see the programmingguide). Note the current version is 3.3 not 2.3.