# HG changeset patch # User psadhukhan # Date 1465552259 -19800 # Node ID 9c164c3f60259d840a05f3b9752ab009b7a099b5 # Parent a7ad23d3d161952cdaf6cdfc3142defe8f81a56e 8158758: [TEST_BUG] test/java/awt/print/PrinterJob/LandscapeStackOverflow.java fails on timeout Reviewed-by: yan diff -r a7ad23d3d161 -r 9c164c3f6025 jdk/test/java/awt/print/PrinterJob/LandscapeStackOverflow.java --- a/jdk/test/java/awt/print/PrinterJob/LandscapeStackOverflow.java Thu Jun 09 14:21:42 2016 +0300 +++ b/jdk/test/java/awt/print/PrinterJob/LandscapeStackOverflow.java Fri Jun 10 15:20:59 2016 +0530 @@ -22,7 +22,7 @@ */ /* * @test - * @bug 6842011 + * @bug 6842011 8158758 * @summary Test if StackOverflowError occurs during printing landscape with * scale and transform. * @run main LandscapeStackOverflow @@ -47,9 +47,6 @@ PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet(); attributes.add( OrientationRequested.LANDSCAPE ); - boolean print = printjob.printDialog( attributes ); - if( !print ) return; - try { printjob.setPrintable( new Painter() ); printjob.print( attributes );