Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
12345678910111213141516171819202122 |
- import java.sql.SQLException;
-
- public aspect Softener {
-
- // expect this to soften the exception thrown
- declare soft: Throwable : execution(* *.run());
- }
-
- class SoftenInner {
- public static void main(String args[]) {
- new SoftenInner().foo();
- }
-
- public void foo() {
- new Runnable() {
- public void run() {
- throw new SQLException("test");
- }
- }.run();
- }
-
- }
|