Are there any code examples that are difficult to decompile?

Sometimes when decompiling Java code, the decompiler cannot decompile it properly, and you end up with small bits of bytecode in the output.

What are the disadvantages of decompilers? Are there any examples of Java source code that compiles into complex bytecode for decompilation?

Update:

Please note that I know that using this information is not a safe way to hide secrets in the code, and that decompilers may be improved in the future.

However, Iโ€™m still interested to know what types of foxes decompilers compile today.

+3
source share
6 answers

Java- , , "" . , , Scala, JVM- , , - Java, , , .

-, , , , .

: .NET :

lock (this)
{
    DoSomething();
}

:

Monitor.Enter(this);
try
{
    DoSomething();
}
catch
{
    Monitor.Exit(this);
}

, # ( .NET) , . () .

+3

JDBC DB2 Connect - . , , , . , . ( ), , , .

( ) , , {'0','O','l','1'}, .
+3

, ( ), "" , . , , , BFT Butterfly. ( , , . , , , ). [ .]

+2

Java - (, ). , . - ( ). , , .

0

. , , .

: ?

0

Java Bytecode Java, , , java- Java.

There is a lot of information about this in the Soot environment for decompiling java byte code, but their web page is not working for me right now.

http://www.sable.mcgill.ca/soot/

0
source

Source: https://habr.com/ru/post/1713029/


All Articles