Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 13 Apr 2013 at 4:13

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 3 Sep 2014 at 6:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant