Skip to content

Instantly share code, notes, and snippets.

@jberkel
Created February 9, 2011 17:10
Show Gist options
  • Select an option

  • Save jberkel/818825 to your computer and use it in GitHub Desktop.

Select an option

Save jberkel/818825 to your computer and use it in GitHub Desktop.
public abstract class AsyncTask<T, P, R> {
abstract doSomething(T... p);
}
public abstract class VorbisEncoderTask<Param> extends AsyncTask<Param, Integer, Param> {
abstract doSomething(Param... p);
}
class EncodeOggTask extends VorbisEncoderTask<Foo> {
doSomeSomething(Foo... f) { }
}
EncodeOggTask.new().execute(new Foo()); => ClassCastException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment