Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6949753

[TEST BUG]: java/awt/print/PageFormat/PDialogTest.java needs update by removing a infinite loop

    XMLWordPrintable

Details

    • 2d
    • b25
    • generic, x86
    • generic, windows_xp

    Backports

      Description

        Testsuite name: 2D
        JDK/JRE tested: 6u21b03(jdk-6u21-ea-bin-b03-windows-i586-22_apr_2010.exe)
        OS/architecture: winxphome-sp3-x86
        Reproducible: Always
        Is it a platform specific regression: N
        Is it a Regression:N

        Steps to reproduce:
        Case: java/awt/print/PageFormat/PDialogTest.java
        PDialogTest.java

        ----------------------------------------------------------------start---------------------------------------------
        /**
         * @test 1.1
         * @bug 4855801
         * @summary Changing margins in the page format does not have any effect
         * @run main/manual PDialogTest
         */
        import java.awt.print.*;
        import javax.print.attribute.*;
        import javax.print.attribute.standard.*;

        public class PDialogTest
        {
              
            public static void main(String[] args) {
                PageFormat page=new PageFormat();
                 while(true){
                     page=java.awt.print.PrinterJob.getPrinterJob().pageDialog(page);
                 }
              
            }
        }
        ----------------------------------------------------------------end-------------------------------------------------
         
        It has dead while loop, test should be updated. Not sure why we need that while clause.

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                tonyli Tony Li (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: