--- /dev/null
+public class Simple {
+ public static void main(String []argv) {
+ new Simple().m();
+ }
+
+ public void m() {
+ int i = 1;
+ System.out.println(i);
+ }
+}
+
+aspect X {
+ before(): call(* println(..)) {}
+}
--- /dev/null
+aspect X {
+ before(): call(* println(..)) {}
+}
public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
public void testGenericFieldNPE_pr165885() { runTest("generic field npe");}
-
+ public void testIncorrectOptimizationOfIstore_pr166084() { runTest("incorrect optimization of istore"); }
/////////////////////////////////////////
public static Test suite() {
</compile>
</ajc-test>
+ <ajc-test dir="bugs160/pr166084" title="incorrect optimization of istore">
+ <compile files="X.java" inpath="simple.jar"/>
+ <run class="Simple"/>
+ </ajc-test>
+
<!-- second section - need a 1.6 vm -->