Try to fix openjdk6 issue with generic inheritance.