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.

ProblemAspect.java 386B

12345678910111213
  1. public aspect ProblemAspect {
  2. pointcut init(): initialization(Object+.new(..));
  3. pointcut staticinit(): staticinitialization(Object+);
  4. Class around(String className): cflowbelow(init() || staticinit()) &&
  5. call(Class Class.forName(String)) && args(className) {
  6. System.out.println("Test");
  7. return proceed(className);
  8. }
  9. }