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

[TESTBUG] java/awt/print/Dialog/DialogCopies.java does not show instruction

    XMLWordPrintable

Details

    • 2d
    • b16
    • generic
    • generic

    Backports

      Description

        java/awt/print/Dialog/DialogCopies.java is a manual test case. When the test case is executed via jtreg instructions dialog is not seen after looking into the code found that the test does not have any instruction dialog code. When the test case is executed directly instructions are printed on the console . Since manual test cases are executed using jtreg its always better to show instructions.

        Since instructions are not seen by the user does not understand what he has to do or user has to read the code. If user clicks on the cancel button the following exception is thrown .

        java.lang.RuntimeException: Copies not incremented
        at DialogCopies.main(DialogCopies.java:57)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

        Attachments

          Issue Links

            Activity

              People

                landrews Lawrence Andrews
                landrews Lawrence Andrews
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: