• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array creation using wildcards

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why can't I create an Array whose component type is a wildcard parameterized type?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49865
71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but I do know you cannot create an array of parameterised types. It has to do with erasure. But I do know that there have been posts about similar topics in the past (not in the last few weeks) which you should find on a search of JavaRanch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic