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.

TestAspect.java 363B

1234567891011121314151617181920
  1. package test;
  2. public aspect TestAspect {
  3. Object around() : within(TestClass) {
  4. return proceed();
  5. }
  6. after() : within(TestClass) {
  7. }
  8. }
  9. class TestClass {
  10. public void test() {
  11. try {
  12. new String();
  13. } catch (Exception ex) {
  14. }
  15. }
  16. }