Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 970 - CORBA IDL does not allow an argument to have the same name as a type.
Summary: CORBA IDL does not allow an argument to have the same name as a type.
Status: RESOLVED INVALID
Alias: None
Product: JacORB
Classification: Unclassified
Component: IDL compiler (show other bugs)
Version: 2.3.0
Hardware: PC Windows NT
: P5 major
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2013-11-22 08:24 UTC by Surendra
Modified: 2013-11-24 07:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.