--- old/test/jdk/com/sun/jdi/InvokeHangTest.java 2019-11-04 17:33:20.305286183 +0100 +++ new/test/jdk/com/sun/jdi/InvokeHangTest.java 2019-11-04 17:33:20.141284411 +0100 @@ -64,7 +64,7 @@ // This is called from the debugger via invokeMethod public double invokeee() { System.out.println("Debuggee: invokeee in thread "+Thread.currentThread().toString()); - yield(); + Thread.yield(); return longMethod(2); } public double longMethod(int n) {