Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0, 1.1-beta-1
-
None
-
Windows XP
Java SE 6
Description
Assigning a value to an array element yields null instead of the assigned value.
int[] a = new int[1]
assert (a[0] = 42) == null // current behavior
assert (a[0] = 42) == 42 // expected behavior