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

Test java/awt/print/PrinterJob/TestPgfmtSetMPA.java may fail w/o printer

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      linux

      Description

      The test java/awt/print/PrinterJob/TestPgfmtSetMPA.java
      fails on linux in headless mode without printer:

      ----------System.out:(2/32)----------
      1.0 1.0 6.5 9.0
      1.0 1.0 6.5 9.0
      ----------System.err:(13/944)----------
      java.lang.RuntimeException: getPageFormat doesn't apply specified MediaPrintableArea attribute
      at TestPgfmtSetMPA.main(TestPgfmtSetMPA.java:68)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:841)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: getPageFormat doesn't apply specified MediaPrintableArea attribute
      JavaTest Message: shutting down test

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              serb Sergey Bylokhov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: