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.

Bug 257460

Summary: some interpreter logic is missing
Product: java Reporter: gilbert32
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 10   
Issue Type: ENHANCEMENT Exception Reporter:

Description gilbert32 2016-01-07 13:03:46 UTC
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;
Comment 1 gilbert32 2016-01-07 13:04:31 UTC
fix pls
Comment 2 Svata Dedic 2016-01-07 13:12:03 UTC
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 ?