Many IDE's debugger match the physical line number. I'm looking for java decompiler with saving actual line number in decompiling code.
http://java.decompiler.free.fr/ is not one.
Many IDE's debugger match the physical line number. I'm looking for java decompiler with saving actual line number in decompiling code.
http://java.decompiler.free.fr/ is not one.
I have released a companion plugin to JD Eclipse which fixes the line numbers issue and makes it easier to switch between real and decompiled source: http://mchr3k-coding.blogspot.co.uk/2012/07/realignment-for-jd-eclipse.html
You might want to look at this, as well:
https://github.com/shimonmagal/jdgui-source-line-fixer
It takes in the zip from jd-gui and outputs a different zip, with line numbers fixed.
Not the most convenient maybe, but does the job.
I've tried all of the decompilers I'm aware of for Eclipse and I've yet to see one that lines up the original line numbers with the source it shows. The JD-Eclipse plugin you referenced comes the closest with comments for the original line numbers. It's too bad it doesn't munge the generated source to line them up. Generally the best thing to do is track down the original source to attach to Eclipse. Otherwise you just have to hunt for the line number in the comments with JD-Eclipse.