You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AOPTest.java 564B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * AOPTest
  3. * Copyright (c) 2001-2006 MessageOne Inc.
  4. */
  5. package example;
  6. public class AOPTest {
  7. public static void doSomething() {}
  8. public static void cleanup() {
  9. try {
  10. doSomething();
  11. doSomething();
  12. } catch(Exception ex) {
  13. // ignore
  14. }
  15. }
  16. public static void cleanup2() {
  17. try {
  18. doSomething();
  19. } catch(Exception ex) {
  20. // ignore
  21. }
  22. }
  23. public static void main(String[] args) throws Throwable {
  24. AOPTest.cleanup();
  25. }
  26. }