Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212040

Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b17

      Backports

        Description

        The fix of JDK-8211055 added usage of NSPrintJobDispositionValue identifier which is present only from 10.13+ so causing build issue in 10.12
        >>>>>>>>>>>>
        open/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m:320:5: error: use of undeclared identifier 'NSPrintJobDispositionValue'; did you mean 'NSPrintJobDisposition'?
            NSPrintJobDispositionValue jobDisposition = [src jobDisposition];
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
            NSPrintJobDisposition
        /System/Library/Frameworks/AppKit.framework/Headers/NSPrintInfo.h:66:32: note: 'NSPrintJobDisposition' declared here
        APPKIT_EXTERN NSString * const NSPrintJobDisposition; // an NSString equal to NSPrintSpoolJob, NSPrintPreviewJob, NSPrintSaveJob, or NSPrintCancelJob
                                       ^
        /Volumes/Data/Code/osx1012/fixjdk10/client/open/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m:320:31: error: expected ';' after expression
            NSPrintJobDispositionValue jobDisposition = [src jobDisposition];

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                psadhukhan Prasanta Sadhukhan
                Reporter:
                psadhukhan Prasanta Sadhukhan
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: