United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7181710 [macosx] jawt_md.h shipped with jdk is outdated
JDK-7181710 : [macosx] jawt_md.h shipped with jdk is outdated

Details
Type:
Bug
Submit Date:
2012-07-04
Status:
Closed
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2013-06-07
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u40 (b30)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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
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?
                                     
2012-11-01
I have a patch but it needs to be tested. I'm hoping to get it into the 7u40 release.
                                     
2013-05-07
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/fa856e37c8ef
User:  anthony
Date:  2013-06-07 10:57:44 +0000

                                     
2013-06-07
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/fa856e37c8ef
User:  lana
Date:  2013-06-17 17:00:03 +0000

                                     
2013-06-17
Verified. File is updated.
                                     
2013-09-04



Hardware and Software, Engineered to Work Together