Java Class Anomoly

Associate
Joined
18 Oct 2002
Posts
1,206
Location
UK
Hi,

I have a java class that I am trying to debug. I only have the binary and so I have de-compiled the class to view the source.

To cut a looong story short...

I have re-compiled the source back into a binary .class file and inserted this back into the web-app. Even though the class has had no changes made to it (apart from being de-compiled and then re-compiled) it exhibits different behaviour from the original??

This is really strange and has me stumped!
 
I got the actual source from a colleague. It turns out some decompilation programs can get their knickers in a twist and use a 'best guess' in some circumstances. Not had time to compare both versions in detail but it seems this is where the problem lies.
 
Back
Top Bottom