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

DeclareSoft2.java 340B

123456789101112131415161718192021
  1. import java.io.IOException;
  2. class DeclareSoft2 {
  3. public static void main(String[] x) {
  4. foo();
  5. }
  6. static void foo() throws IOException {
  7. throw new IOException();
  8. }
  9. }
  10. aspect A {
  11. void around(): call(void foo()) {
  12. try { proceed(); }
  13. catch (IOException e) {}
  14. }
  15. declare soft: IOException: call(void foo());
  16. }