bin yan
bin yan

Reputation: 63

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.

Upvotes: 6

Views: 884

Answers (1)

user1643723
user1643723

Reputation: 4222

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.

Upvotes: 2

Related Questions