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.

IllegalAdoption.java 313B

12345678910111213141516
  1. import org.aspectj.testing.Tester;
  2. public class IllegalAdoption {
  3. static class A {};
  4. static class B extends A {};
  5. static class C extends B {};
  6. static class D {};
  7. static class E extends D {};
  8. static aspect Adoption {
  9. declare parents : E extends C; // should cause a compilation error
  10. }
  11. }