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?