6

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


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

user1643723
  • 4,109
  • 1
  • 24
  • 48
bin yan
  • 63
  • 3
  • Proguard is unable to keep the parameter names for my public interfaces, converting them to 'var1', 'var2', and so on. – bin yan Apr 18 '16 at 04:45
  • Possible duplicate of [Preserving parameter/argument names in compiled java classes](https://stackoverflow.com/questions/939194/preserving-parameter-argument-names-in-compiled-java-classes) – user1643723 Sep 17 '17 at 11:58

1 Answers1

2

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.

user1643723
  • 4,109
  • 1
  • 24
  • 48