Monday 15 March 2010

bytecode - Byte code to java -


Is it possible to convert a .class file to a .java file? If yes then how? What is the correctness of code removed from this option?

This is possible. To do this, you need a Java decampler.

Most of you will do this amazingly good job which you will get is a valid .java file that will be compiled from the .class file but it The .java file will not necessarily be the same as the basic source code, things like looping construction can vary, and anytime compile, such as generic and reproduced in the form of annotations will not be done.

You may have a problem if it is a process that changes class files so that it becomes difficult to decompile. For example, the class and variable name change to all, so that you will end up with the code like aa.a (ab) instead of employee.setName (name)

I remember to do this, but I do not think it has been actively maintained, so it can not work with any versions of Java. A will give you many options.


No comments:

Post a Comment