【发布时间】:2017-01-18 10:38:22
【问题描述】:
问题的简短摘要Preserving parameter/argument names in compiled java classes
为了保留参数名称,必须使用
javac -g:vars作为编译器选项来编译 Java 源代码
我通常使用 Ant javac 任务进行编译。如何调整它以保留方法参数名称?
当前代码如下:
<javac includeantruntime="false" srcdir="src" destdir="build/compiled" deprecation="on" target="1.7" source="1.7" debug="true" verbose="false" classpathref="project.classpath" encoding="utf-8" />
【问题讨论】: