Apt
Apt

Reputation: 1

Working with decompiled java code

In my recent project, we are in need to modify some business rules, but we don't have source code.

I took latest production deployed jar file and opened it through JD-gui. By using option save All resources i am able to get de compiled java files. Now my questions are:

  1. I see that decompiled java code is having unnecessary line comments on each and every lines. Is there any way to avoid them?

  2. If i make the changes to some file and then compile the code again and send the jar to production, will there be an any hidden challenges?

Upvotes: 0

Views: 1295

Answers (1)

Kiet Thanh Vo
Kiet Thanh Vo

Reputation: 399

1.That depend which tool you used, most of the case you must clean up by yourself.
2.Some jar file contain MD5 checksum, you must remove or update checksum in order to make your new jar file work.

Upvotes: 2

Related Questions