title: Is there a way to disable short circuit evaluation in Java?
body: <p>Say I have code like this:</p>
  
  <pre><code>boolean ret = a() &amp;&amp; b() &amp;&amp; c() &amp;&amp; d() &amp;&amp; e();
  </code></pre>
  
  <p>Usually e() is only called if all other calls a()-d() return true. Is there maybe some compiler or JVM option to disable short circuit evaluation, so e() would be called always, regardless of other functions' results?</p>
  
  <p>Basically I am doing UAT of huge system and need to test e(), however setting up environment and scenario that assures all a(), b() etc. return true is extremely painful...</p>
  
  <p>EDIT: ok, I guess using bit AND instead of logical one could provide SOME sort of workaround, however ideally I am looking for a solution that does not require ANY CHANGES in the source code. Both due to formal and technical reason (as i mentioned system is big and we have whole process of promoting and deploying code between staging areas and getting sign-offs). And this is for testing only, production version needs to have lazy evaluation enabled (i.e. use &amp;&amp;)</p>
  
  <p>POST-MORTEM:</p>
  
  <ul>
  <li>"Correct" answer is: No, there is not.</li>
  <li>"Useful" answer: you can change &amp;&amp; to &amp;</li>
  <li>"What I did in the end" answer: debug system remotely, put breakpoint on expression and told eclipse to run e() -_-</li>
  </ul>