Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / September 2005

Tip: Looking for answers? Try searching our database.

Comparing class files for equivalence

Thread view: 
Mahmoud Abdel-Fattah - 14 Sep 2005 12:16 GMT
I have a group of class files that were apparently compiled with two
different compilers, and I want to know if these files were compiled
out of the same source files. I tried decompiling them with jad, but I
found a lot of differences in the decompiled source code that do not
eventually change the logic behind the code. Is there a way somebody
may suggest to test two groups of classes for having equivalent logic?
Are there any tools that do equivalence checking of two classes?

Thank you.
Roedy Green - 14 Sep 2005 21:24 GMT
>I have a group of class files that were apparently compiled with two
>different compilers, and I want to know if these files were compiled
[quoted text clipped - 3 lines]
>may suggest to test two groups of classes for having equivalent logic?
>Are there any tools that do equivalence checking of two classes?

What happens if you decompile them both and recompile them with the
same compiler, say JET which might optimise out the minor differences.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Mahmoud Abdel-Fattah - 19 Sep 2005 10:48 GMT
Thanks for the response. I have a problem that makes your solution too
hard, which is that there are too many inner classes. The decompiler
outputs the inner classes in separate source code files, and merging
them into the original code is a very time consuming process. I wonder
if there is another solution to the problem.

I heard about equivalence checking tools used in hardware design. I
wonder if similar tools exist for software development.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.