summaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-05 08:04:34 +0000
committeraclement <aclement>2006-05-05 08:04:34 +0000
commit6cc28740d01a06428037612b3d33bee5eeab7733 (patch)
tree97f1201102b32b80ae8a5aa6337db1b49494f18a /tests/bugs152
parentab00b0b5636ccae2d5bafc6c58f9aa02c5dcaf9c (diff)
downloadaspectj-6cc28740d01a06428037612b3d33bee5eeab7733.tar.gz
aspectj-6cc28740d01a06428037612b3d33bee5eeab7733.zip
test for 136393
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr136393/World.aj23
1 files changed, 23 insertions, 0 deletions
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