title: Java method isn't calledin expression
body: <p>I really confused about this issue, I have a method that returns boolean - mainMethod(), so I use the result in logical expression, see here:</p>
  
  <pre><code>    boolean b = this.someMethod(); 
      b = b &amp;&amp; this.mainMethod(); // method is not called
  </code></pre>
  
  <p>I checked jar file via decompiler everything is OK. Then I changed the lines above to:</p>
  
  <pre><code>  boolean b = this.someMethod(); 
    boolean result = this.mainMethod(); // now method is called!!!
    b = b &amp;&amp; result; 
  </code></pre>
  
  <p>Does anywone know how this might happen? I have no idea, this is looking very strange.</p>