java - class反编译时如何处理spring内部类?
怪我咯
怪我咯 2017-04-17 17:58:35
0
3
416

对,这是一个坑!绝逼是一个坑!
要修改公司以前产品的代码,但由于历史遗留问题,然而工程源代码已经找不到了,只有war包

好吧,只能通过“jd-gui.exe”工具逐个文件进行反编译
但在编译DAO层代码的时候,发现很多内部类文件,内部类的区别只在于构造函数的参数列表。(见下图)

实在不知道该如何合并,求大神支招!感激不尽!

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
刘奇

If the parameter table contains an upper class (that is, a public class), you can remove this parameter and put it inside the class to write it as a non-static inner class. If there is no such parameter, it will be written as a static inner class. However, the decompiled code is different due to different tools. It mainly depends on the way this internal class is called in other codes.

伊谢尔伦

If you have time, you can change it to an anonymous inner class.

But if you change $1 or something to a legal class name, it will still work.

大家讲道理

I can only say that it’s a shame.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template