--- old/test/java/awt/applet/Applet/AppletFlipBuffer.java 2015-09-04 13:54:10.027616900 +0300 +++ new/test/java/awt/applet/Applet/AppletFlipBuffer.java 2015-09-04 13:54:08.752116900 +0300 @@ -46,10 +46,16 @@ frame.setUndecorated(true); frame.setVisible(true); componentAccessor.createBufferStrategy(applet, 2, caps); - System.out.println("ok"); + } + catch (ClassCastException e) { + throw new RuntimeException("Failed"); + } + catch (Exception e ) { + } finally { frame.dispose(); } + System.out.println("ok"); } } \ No newline at end of file