aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr107858.aj
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-08-31 14:24:14 +0000
committeracolyer <acolyer>2005-08-31 14:24:14 +0000
commit6c8747b590e9e9092ae256f2c7af0db169a6e2e4 (patch)
tree35102a2c59e0abb70eded4e6500bf646010f1f60 /tests/bugs150/pr107858.aj
parentf2af562611c7e060ebd71b9b29d6766ffcb9c727 (diff)
downloadaspectj-6c8747b590e9e9092ae256f2c7af0db169a6e2e4.tar.gz
aspectj-6c8747b590e9e9092ae256f2c7af0db169a6e2e4.zip
tests and fix for pr107858, inline field access in argument to proceed with too many arguments
Diffstat (limited to 'tests/bugs150/pr107858.aj')
-rw-r--r--tests/bugs150/pr107858.aj12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/bugs150/pr107858.aj b/tests/bugs150/pr107858.aj
new file mode 100644
index 000000000..2b107e4dd
--- /dev/null
+++ b/tests/bugs150/pr107858.aj
@@ -0,0 +1,12 @@
+class Foo {
+ Foo field;
+ void test() {}
+}
+
+public aspect pr107858 {
+ void around() : call(void Foo.test()) {
+ Foo foo = new Foo().field;
+ proceed(foo); // caught at compile time
+ proceed(new Foo().field); // crashes
+ }
+} \ No newline at end of file