changeset 39512:9c164c3f6025

8158758: [TEST_BUG] test/java/awt/print/PrinterJob/LandscapeStackOverflow.java fails on timeout Reviewed-by: yan
author psadhukhan
date Fri, 10 Jun 2016 15:20:59 +0530
parents a7ad23d3d161
children 94c4de9f58da
files jdk/test/java/awt/print/PrinterJob/LandscapeStackOverflow.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 );