Re: generics and arrays and multi-class collections



Roedy Green wrote:
It has been a while. I was trying to allocate arrays of the given
generic type, and was baffled. I used code similar to what I found in
Sun's collections and to my surprise discovered it generated warning
messages. I asked about it on the newsgroups and the wise ones
assured me this was indeed a limitation of Java's genericity design.

The rule of thumb is, "Generics and arrays don't mix."

--
Lew
.