Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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