JDK-8234795 : fix build that fails on macOS lower than 10.13 after 8214578
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 14
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2019-11-26
  • Updated: 2019-11-26
  • Resolved: 2019-11-26
Related Reports
Duplicate :  
Description
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.