aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-08 14:09:18 +0000
committeracolyer <acolyer>2005-09-08 14:09:18 +0000
commit08d6a5d1e032d33b46afca2fd92d3700b06a6cc6 (patch)
treeddc9e159e4b94211d7b833620e985f3a416bd411 /tests/src
parent2505485766b460041f2648e56f34132982f6428a (diff)
downloadaspectj-08d6a5d1e032d33b46afca2fd92d3700b06a6cc6.tar.gz
aspectj-08d6a5d1e032d33b46afca2fd92d3700b06a6cc6.zip
tests and fix for pr109042, unusedArgument warning on aj synthetic args
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml5
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
index fd2c8a329..f129c6f9f 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java
@@ -405,6 +405,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testSuperCallInITD() {
runTest("super call in ITD");
}
+
+ public void testNoUnusedParameterWarningsForSyntheticAdviceArgs() {
+ runTest("no unused parameter warnings for synthetic advice args");
+ }
// helper methods.....
public SyntheticRepository createRepos(File cpentry) {
diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
index fbec23663..28017a7dd 100644
--- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
+++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml
@@ -516,6 +516,11 @@
<message kind="error" line="14" text="The method print() is undefined for the type Object"/>
</compile>
</ajc-test>
+
+ <ajc-test dir="bugs150" pr="109042" title="no unused parameter warnings for synthetic advice args">
+ <compile files="pr109042.aj" options="-warn:+unusedArgument -warn:+unusedPrivate -warn:+unusedImport -1.5">
+ </compile>
+ </ajc-test>
<!-- ============================================================================ -->
<!-- ============================================================================ -->