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

fix build that fails on macOS lower than 10.13 after 8214578

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 14
    • client-libs
    • None
    • 2d
    • generic
    • os_x

      Change 8214578 introduced a dependency to 10.13. (NSTextInputSourceIdentifier ).

      The doc of NSTextInputSourceIdentifier : https://developer.apple.com/documentation/appkit/nstextinputsourceidentifier

      mentions macOS 10.13+ .

       Build errors are :
       ----------------------------

      > /jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h:41:5: error: unknown type name 'NSTextInputSourceIdentifier'
      > NSTextInputSourceIdentifier kbdLayout;
      > ^
      > /jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m:93:23: error: assignment to readonly property
      > self.cglLayer = windowLayer;
      > ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
      > /jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m:110:19: error: assignment to readonly property
      > self.cglLayer = nil;
      > ~~~~~~~~~~~~~ ^ ~~~
      > 3 errors generated.

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: