changeset 52276:c7afaa79cbb3

8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12 Reviewed-by: jdv
author psadhukhan
date Sun, 14 Oct 2018 18:05:06 +0530
parents ac510fd737eb
children 8e408bf62635
files src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);