eclipse的java反编译器
我用JD for eclipse来反编译类。行号有问题。例如,调试器显示当前第 1123 行,但 JD 生成的源代码不到 1000 行,但它在注释中显示正确(或非常接近)的行,
/* 519 */ this(new SunHTTPHandler());
而实际行号只有 51。
是否可以解决此问题?
I use JD for eclipse to decompile classes. There is a problem with line numbers. For example debugger shows current line 1123 but source code generated by JD has less than 1000 lines, however it shows correct (or very close to) lines in the comments
/* 519 */ this(new SunHTTPHandler());
while real line number is only 51.
Is it possible to solbe this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我不认为京东有能力把线路数弄对。我知道这非常烦人!
Jad 在行数方面比 JD 做得更好。然而,它在反编译方面表现较差。您可以尝试一下,看看它是否适合您。
或者,它应该是一个简单的 sed 脚本来处理输出文件以获得行号正确。
I don't think JD has any ability to get the line numbers right. This is incredibly annoying, i know!
Jad does a better job than JD with the line numbers. However, it does a worse job at decompilation. You could give it a try and see if it's good enough for you.
Alternatively, it should be a simple matter of sed scripting to massage the output files to get the line numbers right.