diff options
author | acolyer <acolyer> | 2005-09-02 14:44:26 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-02 14:44:26 +0000 |
commit | 2c88c598b950136bf54376eecbf58f14a19666c4 (patch) | |
tree | 12333d10a8abf257403fbb17057af499b6b46a9a /tests | |
parent | b17ff4ed2d55ec24f1f1a6f3fe70ffd91ac18e62 (diff) | |
download | aspectj-2c88c598b950136bf54376eecbf58f14a19666c4.tar.gz aspectj-2c88c598b950136bf54376eecbf58f14a19666c4.zip |
test and fix for pr101606, unused privated method warnings incorrectly generated for pointcuts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr101606.aj | 5 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 7 |
3 files changed, 15 insertions, 1 deletions
diff --git a/tests/bugs150/pr101606.aj b/tests/bugs150/pr101606.aj new file mode 100644 index 000000000..db234e3c4 --- /dev/null +++ b/tests/bugs150/pr101606.aj @@ -0,0 +1,5 @@ +public aspect pr101606 { + + private pointcut foo(); + +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 2cf9dc7a9..5db8119d1 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -378,6 +378,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("synchronized itd interface methods"); } + public void testNoWarningOnUnusedPointcut() { + runTest("unused private pointcuts"); + } + // 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 7814d3cd8..aba23f729 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -468,7 +468,12 @@ </compile> <run class="SynchronizedInterfaceMethods"/> </ajc-test> - + + <ajc-test dir="bugs150" pr="101606" title="unused private pointcuts"> + <compile files="pr101606.aj" options="-warn:unusedPrivate"> + </compile> + </ajc-test> + <!-- ============================================================================ --> <!-- ============================================================================ --> |