Re: generics and arrays and multi-class collections
- From: Lew <lew@xxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 11:50:36 -0400
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
.
- References:
- generics and arrays and multi-class collections
- From: xen
- Re: generics and arrays and multi-class collections
- From: Roedy Green
- Re: generics and arrays and multi-class collections
- From: SadRed
- Re: generics and arrays and multi-class collections
- From: Roedy Green
- Re: generics and arrays and multi-class collections
- From: SadRed
- generics and arrays and multi-class collections
- Prev by Date: Re: generics and arrays and multi-class collections
- Next by Date: Re: Flame war! [was: Cannot find symbol java error (newbie question)]
- Previous by thread: Re: generics and arrays and multi-class collections
- Next by thread: Re: Teach online turn your wisdom into wealth at GoogleSpammer.com
- Index(es):