JDK-7154778 : [macosx] NSView-based implementation of sun.awt.EmbeddedFrame
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u4
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2012-03-19
  • Updated: 2014-10-15
  • Resolved: 2012-12-11
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
7u40Fixed 8 b69Fixed
Related Reports
Relates :  
Relates :  
Description
sun.lwawt.macosx.CEmbeddedFrame is a lightweight, CALayer-based implementation of sun.awt.EmbeddedFrame to embed AWT/Swing applets to browser. However, This is not the only case where embedded frames are used, for example, SWT utilizes it for SWT_AWT bridge.

In JDK6, Apple provided NSView-based (heavyweight) subclass of sun.awt.EmbeddedFrame, and this is what SWT expects from JDK7 as well. So we'll need one more implementation. Note that it will unlikely be named exactly as in JDK6 (apple.awt.CEmbeddedFrame), so some code changes in SWT will be required too.

Comments
This is a new API for SWT, so it's hard to create a regression test for it
22-08-2013

I can create CViewEmbeddedFrame extracting a native window pointer out of a regular Frame. So, there IS an implementation:-). Verified.
25-06-2013

EVALUATION java.net forum thread about this issue: http://www.java.net/forum/topic/jdk/java-se-snapshots-project-feedback/eclipse-swtawt-bridge-broken-mac-os-x-openjdk-7u4ea?force=224 SWT bug in Eclipse bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=374199
19-03-2012