You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }