org.aspectj/tests/bugs152/pr136393/World.aj

23 lines
487 B
Plaintext
Raw Normal View History

2006-05-05 10:04:34 +02:00
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() {}
}