Using a type parameter at the 'wrong' time?
I tried to make a subclass of SwingWorker using...
privateclass ProcessSAV<Void, String>extends SwingWorker{...}
...and in the doInBackground() method, I declared and initialized a local variable...
String filename ="blahblahblah";
Somehow, I manage to get an incompatible types compile-time error at this line of code.
found: java.lang.String
required: String
I know that the second type parameter is used to the specify the object type in publish() as well as the List type in process(). When I declare a String as the local variable in this instance, it seems to be a unique type related the second type argument and won't accept anything that returns a java.lang.String.
Why is it doing this? And is there any way to get around it?

