sky201503 / dex2jar

Automatically exported from code.google.com/p/dex2jar
0 stars 0 forks source link

dex2jar doesn't preserve method argument names, only types. #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use dex-reader with a class visitor

What is the expected output? What do you see instead?
I want to see besides the argument types, the names of the arguments

What version of the product are you using? On what operating system?
Latest

Please upload the file which cause the issue if possible.
Any class

Please provide any additional information below.
I tried other software that processed DEX files and they do provide the method 
argument names, and they are not auto generated, but exactly the method names I 
gave them when I wrote my code. So it's not something that is not available 
inside the dex file, but something dex2jar doesn't implement. Would be great to 
have implemented, since it makes reading/decompiling code much more pleasant.

Original issue reported on code.google.com by goo...@umito.nl on 13 Apr 2013 at 4:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just passing by.... 

Class files can store the names of arguments. In fact, there is a command line 
parameter to java compiler to force it to preserve them.

However, in reality I don't think you can extract the names of method 
parameters. Why do compiled java class files need to store it? At least in 
release versions (without debug information) of classes most likely it will be 
without method parameter names.

Original comment by anton.da...@frtk.ru on 3 Sep 2014 at 6:50