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

Regression Test DialogOrient.java fails on MacOS

XMLWordPrintable

    • 2d
    • b02
    • 18
    • b26
    • x86_64

      The Regression Test java/awt/print/Dialog/DialogOrient.java which checks setting PageFormat Orientation functionality fails on MacOS
      Product Tested : JDK 19.0.2+4
      Platform Tested : MacOS13 (x64)
      Is it regression: No

      On MacOS 13 with JDK 19.0.2+4 FAILED
                       JDK 19.0.1+10 FAILED
      on MacOS 12 with JDK 17.0.6+5 Failed. (Same exception is observed)
                        JDK 17.0.5+9 Failed.
                        JDK 11.0.18+5 Failed.
      JDK 11.0.17+10 Failed.

      The error observed in the log
      ----------System.err:(23/2001)----------
      objc[742]: Class CustomPageSizeNumberFormatter is implemented in both /System/Library/PrivateFrameworks/PrintingPrivate.framework/Versions/A/Plugins/PrintingUI.bundle/Contents/MacOS/PrintingUI (0x1ad4fc8f8) and /System/Library/PrivateFrameworks/PrintingPrivate.framework/Versions/A/Plugins/PrintingCocoaPDEs.bundle/Contents/MacOS/PrintingCocoaPDEs (0x1b05eac78). One of the two will be used. Which one is undefined.
      objc[742]: Class PMMediaName is implemented in both /System/Library/PrivateFrameworks/PrintingPrivate.framework/Versions/A/Plugins/PrintingUI.bundle/Contents/MacOS/PrintingUI (0x1ad4fc448) and /System/Library/PrivateFrameworks/PrintingPrivate.framework/Versions/A/Plugins/PrintingCocoaPDEs.bundle/Contents/MacOS/PrintingCocoaPDEs (0x1b05eb678). One of the two will be used. Which one is undefined.
      java.awt.print.PrinterException
      at java.desktop/sun.lwawt.macosx.CPrinterJob.print(CPrinterJob.java:393)
      at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1487)
      at DialogOrient.init(DialogOrient.java:76)
      at DialogOrient.main(DialogOrient.java:131)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1589)
      Caused by: java.lang.RuntimeException: Wrong Orientation
      at DialogOrient.print(DialogOrient.java:87)
      at java.desktop/sun.lwawt.macosx.CPrinterJob$6.run(CPrinterJob.java:806)
      at java.desktop/sun.lwawt.macosx.CPrinterJob.printAndGetPageFormatArea(CPrinterJob.java:825)
      at java.desktop/sun.lwawt.macosx.CPrinterJob.printLoop(Native Method)
      at java.desktop/sun.lwawt.macosx.CPrinterJob.print(CPrinterJob.java:367)
      ... 7 more

      JavaTest Message: Test threw exception: java.awt.print.PrinterException
      JavaTest Message: shutting down test

            psadhukhan Prasanta Sadhukhan
            mbollapragad Maheshkumar Bollapragada
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: