8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12
Reviewed-by: jdv
--- 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);