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

PIT: access problem to a PrinterJob on OS X

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Environment:

      OS X 10.9 PIT of jdk9 b06

    • Subcomponent:
      2d
    • Resolved In Build:
      b08
    • CPU:
      x86_64
    • OS:
      os_x

      Backports

        Description

        We have apparently some security by-product bug on Mac.
        Run this simple code with b06 PIT build of jdk9:

        import java.awt.print.*;
        public class PriJo {
            public static void main(String args[]) {
                PrinterJob pj = PrinterJob.getPrinterJob();
                PageFormat pf = pj.pageDialog(new PageFormat());
            }
        }

        It will fail with
        Exception in thread "main" java.awt.AWTError: Could not access PrinterJob: sun.lwawt.macosx.CPrinterJob
        at java.awt.print.PrinterJob$1.run(PrinterJob.java:88)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.print.PrinterJob.getPrinterJob(PrinterJob.java:77)
        at PriJo.main(PriJo.java:4)

        It's new issue in this PIT only. Could it be a stopper?

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pchelko Petr Pchelko (Inactive)
                  Reporter:
                  yan Yuri Nesterenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: