Browse Source

testcode for 149071

tags/PRE_PIPELINE
aclement 18 years ago
parent
commit
2c5ebb90bd

+ 11
- 0
tests/bugs153/pr149071/AspectItd.java View File

@@ -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{}

+ 17
- 0
tests/src/org/aspectj/systemtest/ajc153/ajc153.xml View File

@@ -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>

Loading…
Cancel
Save