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 ++++++++++++++++++++++ tests/src/org/aspectj/systemtest/ajc152/ajc152.xml | 7 +++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/bugs152/pr136393/World.aj 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 diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml index 9e193b67e..abcf47c50 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml +++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml @@ -223,4 +223,11 @@ + + + + + + + \ No newline at end of file -- cgit v1.2.3