public class TestMarkers2 { public class SuperGenericsType {} public class SubGenericsType //Following line would produce correct code extends SuperGenericsType {} public class Super {} public class Sub extends Super {} }