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.
[ BUILD # : 201203200400 ] [ JDK VERSION : 1.7.3 ] Example-Code: Collection<Integer[]> myCollection = new ArrayList<Integer[]>(); myCollection.add(new Integer[]{1, 2}); for (Integer[] X1 : myCollection) { //Here the Hint "Unbalaced read/write with arrays" is shown Integer Xx0 = X1[0]; //Here the Array is used Integer Xx1 = X1[1]; //And here again System.out.println(Xx0 + "->" + Xx1); }
Created attachment 117002 [details] Screenshot
Thanks for the report, should be fixed in the trunk: http://hg.netbeans.org/jet-main/rev/3a0663979d94
Integrated into 'main-golden', will be available in build *201203230400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3a0663979d94 User: Jan Lahoda <jlahoda@netbeans.org> Log: #209850: Unbalanced$Array needs to ignore for each variables.