posted 15 years ago
Hi all,
Hope I got the right forum - let me know if this is the wrong place.
Here's my problem: in the code below the Client has a compile time error:
Type mismatch: cannot convert from Joiner<capture#1-of ?> to Joiner<File>
My understanding of <?> is 'we don't know what type yet' so what I can't understand is why <file> can't be a type of <?>
By a similar token I've tried making hte return type of the abstract method in the enum factory <Object> - still won't work, you get compile time error in the enum factory that <File> is an incompatable return type.
Perhaps I'm missing some fundamental concept here but I've been googling it all day and I'm totally at a loss - can anyone explain this to me ??
Many thanks in advance.
Phil