aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr162135/Foo3.java
blob: 8265214aac13ce5761bcf3626562c941a7fc395e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//package com.foliofn.infra.logging;

import java.lang.reflect.Field;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

//@Aspect public class Foo {
aspect Foo3 {

	public void m() {
	  new RuntimeException("hello");
	}
	  public static void main(String[] argv) {
		  
	  }
	
  Object around(Object caller): call(Throwable+.new(String, ..)) && this(caller) && if(true==true) {
      return null;
  }
  
//	  @Pointcut("call(Throwable+.new(String, ..)) && args(exceptionMessage) && if()")
//	  public static boolean exceptionInitializer(String exceptionMessage) {
//	      return true;
//	  }
//	
//	  @Around("exceptionInitializer( exceptionMessage)")
//	  public Object annotateException(ProceedingJoinPoint jp, String exceptionMessage) {
//	      return null;
//	  }
	
//    @Pointcut("call(Throwable+.new(String, ..)) && this(caller) && args(exceptionMessage) && if()")
//    public static boolean exceptionInitializer(Object caller, String exceptionMessage) {
//        return true;
//    }
//
//    @Around("exceptionInitializer(caller, exceptionMessage)")
//    public Object annotateException(ProceedingJoinPoint jp, Object caller, String exceptionMessage) {
//        return null;
//    }

}