diff options
author | aclement <aclement> | 2005-12-01 15:00:22 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-01 15:00:22 +0000 |
commit | a75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6 (patch) | |
tree | ca481a5628bc17f8fe11397bd8e38986b663e154 /tests/bugs150/pr118781 | |
parent | 8ec833146a26d4952177d8dd7bc368da583b5c8b (diff) | |
download | aspectj-a75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6.tar.gz aspectj-a75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6.zip |
test and fix for 118781
Diffstat (limited to 'tests/bugs150/pr118781')
-rw-r--r-- | tests/bugs150/pr118781/MyAspect.java | 13 | ||||
-rw-r--r-- | tests/bugs150/pr118781/MyClass.java | 21 | ||||
-rw-r--r-- | tests/bugs150/pr118781/MyMain.java | 15 |
3 files changed, 49 insertions, 0 deletions
diff --git a/tests/bugs150/pr118781/MyAspect.java b/tests/bugs150/pr118781/MyAspect.java new file mode 100644 index 000000000..9ba114ee3 --- /dev/null +++ b/tests/bugs150/pr118781/MyAspect.java @@ -0,0 +1,13 @@ +package blah; + +public aspect MyAspect { + + pointcut callPointCut(): call(public * blah.MyClass+.*(..)); + + Object around() : callPointCut() { + System.out.println("start of around"); + Object result = proceed(); + System.out.println("end of around"); + return result; + } +} diff --git a/tests/bugs150/pr118781/MyClass.java b/tests/bugs150/pr118781/MyClass.java new file mode 100644 index 000000000..c29be0ca9 --- /dev/null +++ b/tests/bugs150/pr118781/MyClass.java @@ -0,0 +1,21 @@ +package blah; + +import java.util.Random; + +public class MyClass { + public Integer[] getRandomInt(String[][] param) + { + for (int i = 0; i < param.length; i++) + { + System.out.print("[" + i + "] = ["); + for (int j = 0; j < param[i].length; j++) + { + System.out.print(param[i][j]); + if (j != param[i].length-1) + System.out.print(','); + } + System.out.println(']'); + } + return new Integer[] { new Integer(new Random().nextInt())}; + } +} diff --git a/tests/bugs150/pr118781/MyMain.java b/tests/bugs150/pr118781/MyMain.java new file mode 100644 index 000000000..4618c48fb --- /dev/null +++ b/tests/bugs150/pr118781/MyMain.java @@ -0,0 +1,15 @@ +package blah; + +/** */ +public class MyMain { + + /** + * @param args + */ + public static void main(String[] args) + { + MyClass mc = new MyClass(); + mc.getRandomInt(new String[][]{{ "a", "b", +"c"},{"x","y","z"}}); + } +} |