From 6cc28740d01a06428037612b3d33bee5eeab7733 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 5 May 2006 08:04:34 +0000 Subject: test for 136393 --- tests/bugs152/pr136393/World.aj | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/bugs152/pr136393/World.aj (limited to 'tests/bugs152/pr136393') diff --git a/tests/bugs152/pr136393/World.aj b/tests/bugs152/pr136393/World.aj new file mode 100644 index 000000000..2fcc4bc51 --- /dev/null +++ b/tests/bugs152/pr136393/World.aj @@ -0,0 +1,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() {} +} \ No newline at end of file -- cgit v1.2.3