summaryrefslogtreecommitdiffstats
path: root/tests/bugs/decwStringsErroneous.java
blob: 11664ac980cf51481c864e7b03729fbce18f3109 (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
class WarningSample {

	public void method() {}
	  public void anotherMethod() {
	    this.method();
	  }

	}

	aspect WarningAspect {

	  pointcut illegalCall(): call(* WarningSample.method())
	                && within(WarningSample);

	  // the same thing happens with declare error
	  declare warning: illegalCall() : "Hey, don't " +
	      "do that, that is not nice. You should do something else";

	  public void e1() {}
	  declare warning: execution(* e1(..)): "hello " + /* comment */ "world"

	  public void e2() {}
	  declare warning: execution(* e2(..)): "hello " /* comment + "world";
	  
	  public void e3() {}
	  declare warning: execution(* e3(..)): "hello " + // commenthere
	
	}