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.
In this block of code, on 10th line (i = ii) is yellow warning, "The assigned value is never used", but it is wrong: int[] arr = new int[] {1, 2, 3, 4}; int di = 0; do { int i = di; do { int ii = arr[i]; if (ii == 4) { break; } else { i = ii; } } while(true); } while(++di < 4);
Should be fixed by jet-main#b7e47b4acd06 testcase for the code in the issue description added.
Integrated into 'main-silver', will be available in build *201402200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b7e47b4acd06 User: Svata Dedic <sdedic@netbeans.org> Log: #241808: fixed unused reports for do-while loops