<div dir="ltr"><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>    <b>    if $i0 != 2131230787 goto label1;</b>                                                                  // &lt;--</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>     <b>   return $z0; </b>                                                                                                // &lt;--</div><div>   }</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 10, 2015 at 3:31 PM, Nishant Budhdev <span dir="ltr">&lt;<a href="mailto:nishant.budhdev@gmail.com" target="_blank">nishant.budhdev@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font style="background-color:rgb(255,255,255)" face="verdana, sans-serif" size="4">Nishant Shyamal Budhdev</font><div><span style="color:rgb(153,153,153)"><br></span></div><div><font color="#999999" face="trebuchet ms, sans-serif">Research Assistant</font></div><div><font color="#999999" face="trebuchet ms, sans-serif">Embedded Systems and Networking Lab</font></div><div><font color="#999999" face="trebuchet ms, sans-serif">School Of Computing</font></div><div><font color="#999999" face="trebuchet ms, sans-serif">National University of Singapore</font></div><div><font color="#999999" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#999999" face="&#39;trebuchet ms&#39;, sans-serif">Contact : +65 9050 6084<br></font><font color="#999999"><span></span></font></div></div></div>
</div>