]> source.dussan.org Git - aspectj.git/commitdiff
testcode for 149071
authoraclement <aclement>
Thu, 6 Jul 2006 08:33:29 +0000 (08:33 +0000)
committeraclement <aclement>
Thu, 6 Jul 2006 08:33:29 +0000 (08:33 +0000)
tests/bugs153/pr149071/AspectItd.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc153/ajc153.xml

diff --git a/tests/bugs153/pr149071/AspectItd.java b/tests/bugs153/pr149071/AspectItd.java
new file mode 100644 (file)
index 0000000..30e7491
--- /dev/null
@@ -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{}
index 6024e6557cda796fd14a038d7b14ab398bf25894..fb50597f2f0aa35ee2bcf1a413024fee7132265c 100644 (file)
       <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