Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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(){} }