This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.0.2 (Build 201411181905) Operating System = Windows 10 version 10.0 running on amd64 Java; VM; Vendor = 1.8.0_60 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23 writing the following code: Boolean vrai = false; while(vrai==false){.......... ....... if(condition) vrai = !vrai; // this line should be analyzed by the interpreter, and say it should always become true;
fix pls
OK, so the analyzer could understand that if condition == true, then vrai eventually becomes true. And ... what we should do ? Do you mean that the IDE should warn that !vrai is unncessary, that a simple true wold be sufficient ?