8158758: [TEST_BUG] test/java/awt/print/PrinterJob/LandscapeStackOverflow.java fails on timeout
authorpsadhukhan
Fri, 10 Jun 2016 15:20:59 +0530
changeset 39512 9c164c3f6025
parent 39511 a7ad23d3d161
child 39513 94c4de9f58da
8158758: [TEST_BUG] test/java/awt/print/PrinterJob/LandscapeStackOverflow.java fails on timeout Reviewed-by: yan
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 );