JDK-8265238 : [8u] [macos] build failure in OpenJDK8u after JDK-8211301 in older xcode
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: openjdk8u292
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2021-04-14
  • Updated: 2022-05-28
  • Resolved: 2021-06-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjdk8u302 teamFixed
Related Reports
Relates :  
Description
After backporting JDK-8211301 to OpenJDK8u build will fail when using old xcode versions (Xcode 6.3 on Mac 10.10):

.../src/jdk/src/macosx/native/sun/awt/AWTWindow.m:1040:38: error: property 'frame' not found on object of type 'id'
                nsWindow.contentView.frame = contentFrame; 

This is caused because old versions of the Cocoa ApplicationKit defined the contentView property as type id, even if according to the documentation, contentView would always be an NSView object. In the new AppKit, the contentView property of an NSWindow is defined as an NSView, so the problem will not appear.

This can be fixed by casting the result of nsWindow.contentView to an NSView, for example:

                NSView* view = nsWindow.contentView;
                view.frame = contentFrame;
Comments
URL: https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/1ca2806744e0 User: phh Date: 2021-06-01 11:56:51 +0000
01-06-2021

This is an OpenJDK 8u-only bug due to the old Xcode build requirement there.
31-05-2021

Review thread: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-May/013915.html
26-05-2021