您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CyclicClassInheritance.java 328B

123456789101112
  1. /** @testcase PR#567 no error for cyclic class inheritance if no classes implement the interfaces */
  2. public class CyclicClassInheritance {
  3. public static void main( String args[] ) {
  4. throw new Error("not to be run - error case ");
  5. }
  6. }
  7. class A extends B { A(); void a(){} }
  8. class B extends A { B(); void b(){} }