Book a Demo

Author Topic: Generate source of imported binary module not work  (Read 2944 times)

moti

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Generate source of imported binary module not work
« on: August 29, 2010, 07:03:54 am »
In EA 8, I imported from binary a big jar file with the option of not generating diagrams for each class.
I then select one of the packages in the model resulting from the import

This pops up the generate dialog, however there are no classes to be able to select. This seems pretty arbitrary because I was able to generate the source by selecting an individual class in the project browser.
How can I get EA to generate source of a jar that I have imported in binary format ?
(It did not generate proper bodies but at least a shell of an implementation- that is a problem for another post!)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate source of imported binary module not
« Reply #1 on: August 30, 2010, 08:46:55 am »
It's been a long time, but I think it's filtering out classes that came from binaries because it can't regenerate into the binary.  Try resetting the filename first.  See http://www.sparxsystems.com/enterprise_architect_user_guide/software_development/resetoptions.html

PS. Don't bother asking about getting EA to generate the method bodies of the imported binaries.  It doesn't have the information available, binary imports are there to model your code using the libraries that you only have available as binaries.

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: Generate source of imported binary module not
« Reply #2 on: August 31, 2010, 04:03:51 pm »
hi'ya Simon....

Am I correct in thinking that being able to reverse engineer and then generate perfectly formed operation bodies is illegal, unless you have prior permission?

I'm kinda wondering why it's cool to get properties and operation signatures from binaries, or is that a gray area

Thanks, have agood day yeah
Kevin [smiley=2vrolijk_08.gif]

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Generate source of imported binary module not
« Reply #3 on: September 01, 2010, 08:39:37 am »
Reverse Engineering operation bodies would certainly violate most license agreements that I've read. I imagine that EA doing it could certainly be a legal issues for Sparx Systems, although I'm no lawyer.

In contrast, the classes/properties/operations on a class library are the interface used by programmers for that library.  It's essential to know what that interface is.  If you were in a pure IDE then it would almost certainly provide auto-complete/intellisense based on the libraries you are using.  Importing from a binary into an EA model is equivalent, and indeed EA does provide auto-complete functionality based on that.