JDK-7181710 : [macosx] jawt_md.h shipped with jdk is outdated
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-07-04
  • Updated: 2014-10-09
  • Resolved: 2013-06-07
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.
JDK 7 JDK 8
7u40 b30Fixed 8Fixed
Description
FULL PRODUCT VERSION :
java version "1.7.0_06-ea"
Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b16)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b07, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Mac OS X Lion 10.7.4 (11E53)

A DESCRIPTION OF THE PROBLEM :
The jawt_md.h header file currently distributed with the jdk does not match the implementation and should be updated. It appears to be an outdated version containing the no longer supported X11 interface. As pointed out by Mike Swingler on the macosx-port-dev mailing-list:
"The jawt_md.h in OpenJDK needs to contain only the CALayer interface, since the OpenJDK OS X AWT does not support either the X11 or the NSView interface."

Please also see discussion on the mailing list:
http://mail.openjdk.java.net/pipermail/macosx-port-dev/2012-July/004577.html


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
As a workaround for using CALayer-based embedding the (deprecated) jawt_md.h header file from apples JavaVM.framework might be used.

Comments
Verified. File is updated.
04-09-2013

I have a patch but it needs to be tested. I'm hoping to get it into the 7u40 release.
07-05-2013

A developer was asking about this again today. It doesn't look like it was the original developer. Can we try to put this into a 7u release, too?
01-11-2012