Note that there are some explanatory texts on larger screens.

plurals
  1. PONetbeans Java Debugger claims that ((true && false) == true)
    primarykey
    data
    text
    <p>I just encountered something that defies my understanding of logic. How can the situation below occur?</p> <p><img src="https://i.stack.imgur.com/mYQea.png" alt="enter image description here"></p> <p>I've tried all the usual approaches to remedy this; clean/build, restart netbeans, etc. but the problem persists. Variable <code>complete</code> is always true, no matter what I do. I even replaced <code>left</code> and <code>right</code> with <code>true</code> and <code>false</code> boolean values respectively, but no change. What did work, was a refactor rename of the variable, but when I changed it back to the original, the problem resurfaced. There are no class members named the same way.</p> <p>What's going on? Have I finally lost my mind, or should that variable have a value of <code>false</code>?</p> <p>This is with Netbeans 7.3.1 on Windows. </p> <p><strong>Edit01</strong></p> <p>I'll try to prove it to the unbelievers that this is actually happening, when I get access to my work computer in a week or so. In the mean while, just take my word for it. THIS IS NOT A PRANK nor did it happen due to my lack of knowledge of debugging with Netbeans.</p> <p>I do remember doing a bunch of svn switch-to-copy commands before this occurred, but not for the project where this code resides in (dependencies). A clean/build should have taken care of any inconsistencies anyways. I also did not remember to clear the Netbeans cache, which I now regret. </p> <p><strong>Edit02</strong></p> <p>Haters gonna hate, but as I feared, after returning to my workstation, I can no longer reproduce this issue. It pisses me off to admit this, but I have no proof whatsoever that this had ever happened. All I did was: woke up my pc from hibernation, undid a refactor rename of my variable, which was the last thing I had done before finishing my work, a clean/build and then another debug run. Everything just..works.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload