8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12
authorpsadhukhan
Sun, 14 Oct 2018 18:05:06 +0530
changeset 52255 c7afaa79cbb3
parent 52254 ac510fd737eb
child 52256 8e408bf62635
8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12 Reviewed-by: jdv
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);