<div dir="ltr">Hi, I&#39;m trying to retrieve the compile-time constant name (e.g. public static final int main = 2130903040) for Android apps. However, Java compiler will replace all the statement used this <div>compile-time constant with its actual value. Thus, in bytecode, the constant seems in the Constant Pool.</div><div>But in Jimple code, I can see some code for method &lt;clinit&gt; to do initialization for this constant, in which the constant name is preserved. When I loaded this app to see all methods for this class, this &lt;clinit&gt; method doesn&#39;t exist in the class file.</div><div><br></div><div>Can you help me about explain why this happened and how to obtain the constant name?</div><div><br></div><div>Thanks,</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best,<div><br></div><div>Mian Wan</div></div></div>
</div></div>