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

[TEST_BUG] java/awt/print/PrinterJob/PageDialogMarginTest.java catches all exceptions

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      b117
    • Introduced In Version:
      9
    • Resolved In Build:
      b11

      Backports

        Description

        The java/awt/print/PrinterJob/PageDialogMarginTest.java test catches all exceptions and always passes:

        ----------System.out:(2/99)----------
        pageDialog - left/top from pageFormat: 1.0 1.0
        pageDialog - left/top from attribute set: 1.0 1.0
        ----------System.err:(9/633)----------
        java.lang.RuntimeException: Top margin value not updated
                at PageDialogMarginTest.main(PageDialogMarginTest.java:67)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
                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:831)
        STATUS:Passed.

        To reproduce, run the test. Click OK in the Page Setup dialog displayed without modifying any values. The test must fail but it does not: the test harness considers the test passed because the thrown RuntimeException is caught within the test.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rmahajan Rajat Mahajan
                Reporter:
                aivanov Alexey Ivanov
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: