aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr136393/World.aj
blob: 2fcc4bc51ee23ad171ac3e2bdc519cceeed236e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package hello;

public aspect World {
        pointcut greeting():
                execution(* Hello.sayHello(..));
        after() returning: greeting() {
                System.out.println(" World!");
        }

        String.new(Hello c) {
                this(h.sayHell());
        }

        private static void main(String[] args) {
                String s = new String(new Hello());
                Stystems.substring(0);
        }

}

class Hello {
  public void sayHell() {}
}