Note that there are some explanatory texts on larger screens.

plurals
  1. POSome function parameters named arg0, arg1, etc... after compiling a JAR library
    primarykey
    data
    text
    <p>I seem to have encountered a problem in which, post Ant compilation of a Jar library, some function parameters are arg0, arg1, etc... instead of their real names. the problematic functions all belong to one internal interface in the library.</p> <p>I'm compiling a library using the Ant command:</p> <blockquote> <p>ant clean release -Dversion.code=1 -Dverbose=true -Ddebug=true -Ddebuglevel="vars"</p> </blockquote> <p>Given this, For some reason, part of the methods lose their parameter names while others keep their parameter names. i.e.:</p> <blockquote> <p>Func a(String specificName1) turns into a(String arg0)</p> </blockquote> <p>while</p> <blockquote> <p>Func b(String specifcName2) turns into b(String specificName2)</p> </blockquote> <p>The question is as follows: The library has an internal interface class inside. Why the interfaces functions get parameters named arg0, arg1, etc.. while other methods keep their correct parameter names?</p> <hr> <p>I'm working on an Android library and i'm testing the library jar on Eclipse IDE.</p> <p>The compilation itself was edited in Androids own ant build.xml:</p> <blockquote> <pre><code> &lt;javac encoding="${java.encoding}" source="${java.source}" target="${java.target}" debug="true" debuglevel="vars" extdirs="" includeantruntime="false" destdir="${out.classes.absolute.dir}" bootclasspathref="project.target.class.path" verbose="${verbose}" classpathref="project.javac.classpath" fork="${need.javac.fork}"&gt; &lt;src path="${source.absolute.dir}" /&gt; &lt;src path="${gen.absolute.dir}" /&gt; &lt;compilerarg line="${java.compilerargs}" /&gt; &lt;/javac&gt; </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload