Closed GoogleCodeExporter closed 9 years ago
For mutable collections, your suggestion would break type safety.
For example, suppose delegate was a List<Integer> and the ForwardingList was a
List<Number>. The ForwardingList.add() method would accept a Double, which
would lead
to a Double being stored in the List<Integer>.
However, we plan to add wild cards to unmodifiable collections, since that
problem
doesn't arise. See
http://code.google.com/p/google-collections/issues/detail?id=79
Original comment by jared.l....@gmail.com
on 25 Jun 2008 at 4:28
Original issue reported on code.google.com by
codemon...@gmail.com
on 25 Jun 2008 at 4:05