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.

AJ2.java 408B

1234567891011121314151617181920
  1. public aspect AJ2 {
  2. class X{}
  3. interface Y {}
  4. declare soft : Exception : execution(void x());
  5. declare parents : X implements Y;
  6. declare soft : Exception : execution(void y());
  7. declare soft : Exception : execution(void z());
  8. void x() {
  9. throw new Exception();
  10. }
  11. void y() {
  12. throw new Exception();
  13. }
  14. void z() {
  15. throw new Exception();
  16. }
  17. }