Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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