# HG changeset patch # User psadhukhan # Date 1539520506 -19800 # Node ID c7afaa79cbb345c8016f264f5f9967fbab786cbd # Parent ac510fd737eb180b3db7423d477391b2050021b0 8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12 Reviewed-by: jdv diff -r ac510fd737eb -r c7afaa79cbb3 src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m Thu Oct 11 14:19:36 2018 +0530 +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m Sun Oct 14 18:05:06 2018 +0530 @@ -317,8 +317,7 @@ static JNF_MEMBER_CACHE(jm_setPageRangeAttribute, sjc_CPrinterJob, "setPageRangeAttribute", "(IIZ)V"); static JNF_MEMBER_CACHE(jm_setPrintToFile, sjc_CPrinterJob, "setPrintToFile", "(Z)V"); - NSPrintJobDispositionValue jobDisposition = [src jobDisposition]; - if (jobDisposition == NSPrintSaveJob) { + if (src.jobDisposition == NSPrintSaveJob) { JNFCallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, true); } else { JNFCallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, false);