aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/partialHierarchy/sample/Trace.aj
blob: 394ad64648065d315a824cb0c5a4cb9496b411b3 (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
package sample;



public aspect Trace {
    public interface Traced {}
    declare parents: (sample.* && !Trace) extends Traced;

//    private Logger Traced.logger;
    before(Traced current) : 
	execution(Traced+.new(..)) && !execution(Traced.new()) && this(current) {
	current.getLogger().severe("entering ctor for "+thisJoinPoint);
    }

    public Logger Traced.getLogger() {
 //       if (logger == null) {
//	    logger = Logger.getLogger(getClass().toString());
 //       }
//	return logger;
return null;
    }
}

class Logger {
  public void severe(String s) {
  }
}