summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-02 14:44:26 +0000
committeracolyer <acolyer>2005-09-02 14:44:26 +0000
commit2c88c598b950136bf54376eecbf58f14a19666c4 (patch)
tree12333d10a8abf257403fbb17057af499b6b46a9a /tests
parentb17ff4ed2d55ec24f1f1a6f3fe70ffd91ac18e62 (diff)
downloadaspectj-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.aj5
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java4
-rw-r--r--tests/src/org/aspectj/systemtest/ajc150/ajc150.xml7
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>
+
<!-- ============================================================================ -->
<!-- ============================================================================ -->