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 - some interpreter logic is missing
Summary: some interpreter logic is missing
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.2
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 13:03 UTC by gilbert32
Modified: 2016-01-07 13:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ?