Created
February 9, 2011 17:10
-
-
Save jberkel/818825 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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