summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-06 08:33:29 +0000
committeraclement <aclement>2006-07-06 08:33:29 +0000
commit2c5ebb90bdac4eaf8dc7e9575ef7f0e3de30be94 (patch)
tree11954b64e1f5518de137374fb17998f9cad59fae
parent1b5f76ea13de634c148f46cf1dd37f936579ee6a (diff)
downloadaspectj-2c5ebb90bdac4eaf8dc7e9575ef7f0e3de30be94.tar.gz
aspectj-2c5ebb90bdac4eaf8dc7e9575ef7f0e3de30be94.zip
testcode for 149071
-rw-r--r--tests/bugs153/pr149071/AspectItd.java11
-rw-r--r--tests/src/org/aspectj/systemtest/ajc153/ajc153.xml17
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs153/pr149071/AspectItd.java b/tests/bugs153/pr149071/AspectItd.java
new file mode 100644
index 000000000..30e749169
--- /dev/null
+++ b/tests/bugs153/pr149071/AspectItd.java
@@ -0,0 +1,11 @@
+public aspect AspectItd {
+ //private interface Holder {}
+ private int Holder.x;
+ static aspect Inner {
+ int doIt(Holder h) {
+ return h.x++;
+ }
+ }
+}
+
+interface Holder{}
diff --git a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
index 6024e6557..fb50597f2 100644
--- a/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
+++ b/tests/src/org/aspectj/systemtest/ajc153/ajc153.xml
@@ -75,4 +75,21 @@
<run class="Sample" classpath="run.jar,apath.jar"/>
</ajc-test>
+ <ajc-test dir="bugs153/pr149071" title="visiblity problem">
+ <compile files="AspectItd.java"/>
+ </ajc-test>
+
+ <ajc-test dir="bugs153/pr147841" title="advice not woven on aspectpath">
+ <compile files="A.java" options="-Xlint:ignore" outjar="apath.jar"/>
+ <!--compile files="C.java" outjar="cpa.jar" classpath="cpath.jar"/-->
+ <compile files="C.java" options="-showWeaveInfo" aspectpath="apath.jar">
+ <message kind="weave" text="foo"/>
+ </compile>
+ <run class="C">
+ <stderr>
+ <line text="foo"/>
+ </stderr>
+ </run>
+ </ajc-test>
+
</suite> \ No newline at end of file