Java decompiler is not giving full source code

1.2k Views Asked by At

I have tried to decompile .class file with JD. BUt i got Strange code in it(Static call to a non static method, Classname.this.method etc.) .

Could you please tell me whether it will give 100 percent source code or not?

1

There are 1 best solutions below

3
On

No, java decompilers can't give you the exact source code back. Many compiler optimizations will not be reflected back in the generated file.