<div dir="ltr">Hi,<div><br></div><div>I have the following method in my android app&#39;s main class:</div><div><div>     public boolean onOptionsItemSelected(MenuItem item) {</div><div>      </div><div>        int id = item.getItemId();</div><div>        if (id == R.id.action_settings) {</div><div>            return true;</div><div>        }</div><div>        return super.onOptionsItemSelected(item);</div><div>    }</div></div><div><br></div><div>The Jimple conversion for the same is:</div><div><div>   public boolean onOptionsItemSelected(android.view.MenuItem)</div><div>   {</div><div>        com.example.dcsnsb.testapplicationcp9.MainActivity $r0;</div><div>        android.view.MenuItem $r1;</div><div>        int $i0;</div><div>        boolean $z0;</div><div>        $r0 := @this: com.example.dcsnsb.testapplicationcp9.MainActivity;</div><div>        $r1 := @parameter0: android.view.MenuItem;</div><div>        $i0 = interfaceinvoke $r1.&lt;android.view.MenuItem: int getItemId()&gt;();</div><div>        if $i0 != 2131230787 goto label1;</div><div>        return 1;</div><div>     label1:</div><div>        $z0 = specialinvoke $r0.&lt;android.support.v7.app.ActionBarActivity: boolean onOptionsItemSelected(android.view.MenuItem)&gt;($r1);</div><div><br></div><div>        return $z0;</div><div>   }</div></div><div><br></div><div>I am trying to get source line numbers for refactoring purposes. Usually I have been using getJavaSourceStartLineNumber() for this and it has worked well. However, in this scenario the line number for the lines marked with &quot;// &lt;--&quot; are shown as -1. I tried using tags and trying to go into further debugging but couldn&#39;t find anything other than null associated with those lines for line number related attributes. Is there a way in which I could all the line numbers ?</div><div><br></div><div>Thanks,</div><div>Nishant</div><div><br></div><img width="1" height="1" src="http://s.bl-1.com/jmG8tBL.gif"></div>