Details
Description
Given these classes:
@Immutable class X
{ Collection c = [] }@Immutable class Y
{ Collection c = []; int foo = 1 }I get this behaviour:
x = new X(null); x.c << 1; // UnsupportedOperationException
y= new Y(null); y.c << 1; // Success !?
println y; // Y([1], 0)
See also the discussion with the same subject on the mailing list.