err when array of generic type

Vector<Cell>[]candidate;...candidate =new Vector<Cell>[property_type.length];Cannot create a generic array of Vector<Cell>why?
[179 byte] By [enoaa] at [2007-9-23]
# 1

Rather than trying to explain this myself, I rather point you to this:

http://www.langer.camelot.de/GenericsFAQ/FAQSections/ParameterizedTypes.html#Can%20I%20create%20an%20array%20whose%20component%20type%20is%20a%20concrete%20instantiation%20of%20a%20parameterized%20type?

Harald.

BioMed Information Extraction: http://www.ebi.ac.uk/Rebholz-srv/whatizit

pifpafpufa at 2007-7-11 > top of java,Core,Core APIs...
# 2
And having read the above, think about usingVector<Vector><Cell>> vec = new Vector<Vector><Cell>>();
sabre150a at 2007-7-11 > top of java,Core,Core APIs...