Fixed override check in JL5.

Handled test cases: Generics54, GenericMethod19|20.