tools/SharedTestUtilsOpen/src/test/javaclient/shared/AppLauncher.java

Print this page

        

*** 53,62 **** --- 53,63 ---- defaultLaunch(cl, args); break; case SWING: instantiateOnSwingQueue(cl, args); break; + // https://bugs.openjdk.java.net/browse/JDK-8131888 case SWT: instantiateOnSWTQueue(cl, args); break; case REMOTE: launchOnRemoteStage(cl, args);
*** 103,112 **** --- 104,114 ---- } catch (Exception ex) { ex.printStackTrace(); } } + // https://bugs.openjdk.java.net/browse/JDK-8131888 private static void instantiateOnSWTQueue(final Class<? extends Interoperability> cl, String[] args) { try { Interoperability obj = cl.newInstance(); obj.startSWT(); } catch (Exception ex) {
*** 152,165 **** } catch (Throwable ex) { return null; } return Boolean.TRUE; } else { ! Iterator<Window> it = Stage.impl_getWindows(); ! while (it.hasNext()) { ! ! if (it.next().isShowing()) { return Boolean.TRUE; } } } --- 154,165 ---- } catch (Throwable ex) { return null; } return Boolean.TRUE; } else { ! for (Window w : Stage.getWindows()) { ! if (w.isShowing()) { return Boolean.TRUE; } } }