diff options
-rw-r--r-- | tests/bugs153/pr149071/AspectItd.java | 11 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc153/ajc153.xml | 17 |
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 |