選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

VerifyError.aj 385B

1234567891011121314151617181920212223
  1. import java.io.IOException;
  2. import org.aspectj.lang.SoftException;
  3. public class VerifyError {
  4. static void foo() throws IOException {
  5. throw new IOException();
  6. }
  7. public static void main(String[] args) throws Exception{
  8. try {
  9. foo();
  10. } catch (SoftException sEx) {
  11. //
  12. }
  13. }
  14. }
  15. aspect Soften {
  16. declare soft : IOException : call(* foo());
  17. }