--- old/test/runtime/7158988/TestPostFieldModification.java 2014-02-11 16:12:04.000000000 +0100 +++ new/test/runtime/7158988/TestPostFieldModification.java 2014-02-11 16:12:04.000000000 +0100 @@ -21,6 +21,8 @@ * questions. */ +import java.io.File; + public class TestPostFieldModification { public String value; // watch modification of value @@ -36,6 +38,23 @@ for(int i = 0; i < 10; i++) { test.value += new String("_test"); } + + // JDK-8007710: if OK to exit + File file = new File(System.getProperty("user.dir"), FieldMonitor.MY_TMP_FILE_NAME); + System.out.println("---TestPostFieldModification-run waiting: " + + file.getAbsolutePath()); + + while (!file.exists()) { + try { + Thread.sleep(100); + } catch (Exception e) { + System.out.println("---TestPostFieldModification-run impossible? "+e); + e.printStackTrace(); + break; + } + } + + System.out.println("---TestPostFieldModification-run bye!"); } }.start();