diff options
author | Andy Clement <aclement@gopivotal.com> | 2014-04-04 12:01:18 -0700 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2014-04-04 12:01:18 -0700 |
commit | 4ffb0fd285609fa955450964e54fc3f8fd2996ad (patch) | |
tree | 5c045caaa02ff6ab533dcadcf609eabc702c2278 /tests | |
parent | 022196c5cb5fce666c6f746e4f698d4b03081e7b (diff) | |
download | aspectj-4ffb0fd285609fa955450964e54fc3f8fd2996ad.tar.gz aspectj-4ffb0fd285609fa955450964e54fc3f8fd2996ad.zip |
Fix 431541: Proceed expression not setting resolved type
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bugs180/pr431541/Test.aj | 16 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java | 6 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc180/ajc180.xml | 4 |
3 files changed, 25 insertions, 1 deletions
diff --git a/tests/bugs180/pr431541/Test.aj b/tests/bugs180/pr431541/Test.aj new file mode 100755 index 000000000..72a1eab89 --- /dev/null +++ b/tests/bugs180/pr431541/Test.aj @@ -0,0 +1,16 @@ +public aspect Test {
+
+ Object around(String s): call(public Object foo(String)) && args(s) {
+ return proceed(s);
+ }
+
+}
+
+class C {
+ public void m() {
+ foo("abc");
+ }
+ public Object foo(String s) {
+ return s;
+ }
+}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java b/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java index dfa920e52..ea5d1c845 100644 --- a/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc180/Ajc180Tests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 Contributors + * Copyright (c) 2013-2014 Contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -21,6 +21,10 @@ import org.aspectj.testing.XMLBasedAjcTestCase; */ public class Ajc180Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testNullAnnotationMatching_431541() { + runTest("NullAnnotationMatching exception"); + } + public void testAnnosWith18Flags_415957() { runTest("annotations with 1.8 flags"); } diff --git a/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml b/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml index 8ea55c136..0d1132de6 100644 --- a/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml +++ b/tests/src/org/aspectj/systemtest/ajc180/ajc180.xml @@ -2,6 +2,10 @@ <suite> + <ajc-test dir="bugs180/pr431541" title="NullAnnotationMatching exception"> + <compile options="-1.8" files="Test.aj"/> + </ajc-test> + <ajc-test dir="bugs180/415957" title="annotations with 1.8 flags"> <compile files="MyAspect.aj MyClass.java" options="-1.8 -showWeaveInfo"> <message kind="weave" text="Join point 'method-execution(void MyClass.method())' in Type 'MyClass' (MyClass.java:3) advised by before advice from 'MyAspect' (MyAspect.aj:5)"/> |