decompiling java code
807605Aug 7 2007 — edited Aug 8 2007I am modifying a java application, which I do not have access to the source code. So, I used JAD to decompile the code and be able to read it. I'd like to be able to step thru the decompiled code in debug mode using netbeans. The problem is that netbeans goes to the line number where the code exist within the source and not to the line where the code for the decompiled code exist.
For example, if the source code has a specific line of code in line 100, but the decompiled code has it on line 50 of the file, I will be stepping thru the code on line 100 of the decompiled file. JAD, can create a decompiled java file, with references on most lines that indicate where this line of code exist within the source code. So when I'm stepping thru line 100 of the decompiled code I look for the line that references line 100 and I read that line of code. This gets very annoying.
Does any one know of program that decompiles java classes into a file where each line of code is on the same file line number as the source code. I understand there might not be anything thats perfect, but there has to be something better.
I sometimes manually modify a file so that the referenced line numbers match the actual file line number. At worst, i'll create my own java app that modifes the decompiled java file to automate my manual (and tedious) process of "realigning". There are thousands of files.