< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterJob.java

Print this page

        

*** 42,52 **** import javax.print.attribute.standard.MediaSize; import javax.print.attribute.standard.MediaSizeName; import javax.print.attribute.standard.PageRanges; import sun.java2d.*; - import sun.misc.ManagedLocalsThread; import sun.print.*; public final class CPrinterJob extends RasterPrinterJob { // NOTE: This uses RasterPrinterJob as a base, but it doesn't use // all of the RasterPrinterJob functions. RasterPrinterJob will --- 42,51 ----
*** 773,783 **** synchronized(ret) { return ret[0]; } } // upcall from native private static void detachPrintLoop(final long target, final long arg) { ! new ManagedLocalsThread(() -> _safePrintLoop(target, arg)).start(); } private static native void _safePrintLoop(long target, long arg); @Override protected void startPage(PageFormat arg0, Printable arg1, int arg2, boolean arg3) throws PrinterException { --- 772,783 ---- synchronized(ret) { return ret[0]; } } // upcall from native private static void detachPrintLoop(final long target, final long arg) { ! new Thread(null, () -> _safePrintLoop(target, arg), ! "PrintLoop", 0, false).start(); } private static native void _safePrintLoop(long target, long arg); @Override protected void startPage(PageFormat arg0, Printable arg1, int arg2, boolean arg3) throws PrinterException {
< prev index next >