aspose file tools*
The moose likes Beginning Java and the fly likes Array creation using wildcards Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Array creation using wildcards" Watch "Array creation using wildcards" New topic
Author

Array creation using wildcards

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Why can't I create an Array whose component type is a wildcard parameterized type?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36555
    
  16
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array creation using wildcards
 
Similar Threads
arrays & final
error message
array doubt
ArrayStoreException
primitive type