You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Driver.java 384B

123456789101112131415
  1. import org.aspectj.testing.Tester;
  2. public class Driver {
  3. volatile static boolean completed = true;
  4. public static void main(String[] args) { test(); }
  5. public static void test() {
  6. Tester.check(completed, "static volatile filed");
  7. Tester.check(new C().completed, "instance of volatile filed");
  8. }
  9. }
  10. class C {
  11. volatile boolean completed = true;
  12. }