Corba IDL Reverse ok / Generate error

General discussions about code engineering

Moderator: Moderators

Corba IDL Reverse ok / Generate error

Postby william.jehle@gtri.gatech.edu » Tue Jun 10, 2014 11:12 am

Hello,

I have an interesting problem to solve for round-trip engineering of IDL files. I have a very large set of these files which are provided by my customer. I am not supposed to change the IDL files, but I cannot resolve the problem without doing so.

Here is a very small example of the problem I have. In the attached file you'll find two IDL files. The root of the problem seems to stem from a typedef of a typedef of a string.

Curiously, reversing the IDL gives no error.
Reverse.png


I do get an error on generate.
Generate.png


The only proper solution I've been able to find is by changing the following line in bad_reference_sample.idl:
// this will cause error on generate
typedef PRIMITIVE_SUBSTITUTIONS::MyType MyTypeType;
// this will generate without error
typedef ABCD::PRIMITIVE_SUBSTITUTIONS::MyType MyTypeType;

Hopefully there is a graceful way to round-trip the IDL files without this modification. In my case, this problem lives in a common file included in most if not all of the other IDLs. The ripple effect would be huge and expensive just by adding a few characters.

I welcome everyone's input,
Bill
You do not have the required permissions to view the files attached to this post.
william.jehle@gtri.gatech.edu
Forum Beginner
Forum Beginner
 
Posts: 47
Posts Rating:2
Joined: Wed Jul 24, 2013 10:24 am

Return to Code engineering

Who is online

Users browsing this forum: No registered users and 1 guest