Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard keep interface method paramternames

I use -keepparameternames but it's not responding to interface.


The interface's methond parameter is proguard. Thank you for your help.

like image 748
bin yan Avatar asked Oct 30 '22 05:10

bin yan


1 Answers

Proguard can preserve parameter names just fine. Unfortunately, javac does not preserve them by default. In order to emit necessary attributes, make sure to compile your code with full debugging info enabled. Java 8 javac does this with -g and -parameters flags.

See this blogpost for some background.

like image 133
user1643723 Avatar answered Nov 15 '22 05:11

user1643723