Corba IDL Reverse ok / Generate error

General discussions about code engineering

Moderator: Moderators

Corba IDL Reverse ok / Generate error

Postby » Tue Jun 10, 2014 11:12 am


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.

I do get an error on generate.

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
// this will generate without error

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,
You do not have the required permissions to view the files attached to this post.
Forum Beginner
Forum Beginner
Posts: 51
Posts Rating:4
Joined: Wed Jul 24, 2013 10:24 am

Return to Code engineering

Who is online

Users browsing this forum: No registered users and 0 guests