First, if you are going to show example source about a generic, it would probably be a good idea to show us the code for the generic.
Second, if a generic is defined for Animal, then it is used for Animal classes. And since, a Dog class IS-A Animal class (again, assuming, since you never show us the code), then it should work.