I've been a diehard Java 1.4 programmer for a fair while, but I'm trying to catch up now - and I've got a problem with using generics and inner classes together.
Consider the following simplified example:
The message the compiler spits out is:
I can see that the generic identifier 'E' used by class C masks the generic identifier 'E' used by class A, but I can't see a way round this - even if I change the generic identifier 'E' used by class C to some other identifier the compiler still complains.
Can anyone shed some light on how I can get around this problem, but still use inner classes and generics
(edited because I was mixing up the term varargs with the term generics, so fixed it)
[ March 23, 2007: Message edited by: Jim Lang ]