Book a Demo

Author Topic: Exceptions when reverse engineering IDL  (Read 3137 times)

craige

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Exceptions when reverse engineering IDL
« on: August 17, 2005, 06:39:42 am »
I have just started using EA and as such I am just getting familiar with it. Today I tried to reverse engineer an IDL file. The operation was a success but looking at the amendments to the model which were made, I could not see when I was examining the operations within the interface, the details of the exceptions which were raised from by them.

As a sanity check, I forward engineered the IDL again and the exceptions were preserved in the new IDL file but is there anyway of seeing which exceptions are raised by the your IDL operations in the EA model ot indeed adding them to your IDL interface operations?

Many thanks

Craige

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Exceptions when reverse engineering IDL
« Reply #1 on: August 17, 2005, 04:05:23 pm »
Look at the tagged value "throws" (I think) on the methods.

There is a post at http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=suggestions;action=display;num=1123368693;start=5#5 that describes how to view a method tagged value if you don't know.

Simon

craige

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Exceptions when reverse engineering IDL
« Reply #2 on: August 18, 2005, 03:32:24 am »
I have had a look at the tagged values for the operation as suggested but I cannot find any tags associated with it unfortunately.

As a test I tried reverse engineering a Java application and I can see tags for methods which are raising exceptions but not seemingly for IDL related operations.

Any ideas?

Thanks

Craige

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Exceptions when reverse engineering IDL
« Reply #3 on: August 18, 2005, 04:50:48 pm »
It looks like the tagged values aren't being created by the CORBA parser.  We'll have to make an update to fix that.

The method didn't lose its exception specification though because EA doesn't modify methods that have no changes between model and code.

In the mean time, if you need to generate a changed method, you can add a tag "raises" (not "throws" as I guessed in my last message) with the value being something like "(MyException,MyOtherException)".

Simon
« Last Edit: August 18, 2005, 04:53:07 pm by simonm »

lorenzo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Exceptions when reverse engineering IDL
« Reply #4 on: February 24, 2006, 04:07:16 pm »
I am evaluating EA version 6.1 build 787, and it looks like this have not been fixed. Is it correct or do I miss something?

Lorenzo