JDK-7080150 : [TEST_BUG][macosx] No mac os x EmbeddedFrame support in regression regtesthelpers
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,9,11,13,14,15,17
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-08-17
  • Updated: 2023-10-09
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
tbdUnresolved
Related Reports
Relates :  
Description
Please take a look test:
java/awt/grab/EmbeddedFrameTest1/EmbeddedFrameTest1.java

Test fails with message:
Unexpected toolkit - sun.lwawt.macosx.LWCToolkit@36350f6e
 at test.java.awt.regtesthelpers.Util.createEmbeddedFrame(Util.java:123)

Comments
The issue is still being observed with 21 - checked on the build 21-ea+4-184
19-03-2023

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8348 Date: 2022-04-21 19:47:32 +0000
21-04-2022

RULE java/awt/grab/EmbeddedFrameTest1/EmbeddedFrameTest1.java Exception java.lang.RuntimeException: TEST FAILED: java.lang.RuntimeException: Unexpected toolkit - sun.lwawt.macosx.LWCToolkit... RULE java/awt/grab/EmbeddedFrameTest1/EmbeddedFrameTest1.java Exception java.lang.RuntimeException: Unexpected toolkit - sun.lwawt.macosx.LWCToolkit...
24-03-2015

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

It's technically impossible to support this. The test should be excluded on Mac.
12-03-2014

Yes, that EmbeddedFrame is for SWT, however it works only with SWT. It would not work correctly if you embed it into AWT, mostly because SWT and AWT has different coordinate systems on OS X. What's the purpose of this method for testing? If you what this to test AWT_SWT bridge, than SWT Frame should be passed to this method as a parent.. (or a native pointer to the NSView)
26-06-2013

But perhaps fix to JDK-7154778 wouldn't help here. We cannot draw there, can we? Isn't it for SWT?
25-06-2013

EVALUATION The issue depends of the RFE 7154778 [macosx] NSView-based implementation of sun.awt.EmbeddedFrame.
11-07-2012