JDK-8321602 : Create manual test for Desktop.browse with COINIT_MULTITHREADED
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 16,17,21,22
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-12-08
  • Updated: 2023-12-08
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 :  
Relates :  
Description
JDK-8270269 reports an issue where Desktop.browse (or open/print for that matter) fail if the calling thread initialised COM with COINIT_MULTITHREADED.

A manual test with native code could be created which initialises COM, then it calls Desktop.browse or another API and asks the tester to confirm the operation completed successfully.

Foreign Function & Memory API (JEP 454 / JDK-8310626) could be used for 22 and later to avoid having native library.

This cannot be an automated test, there's no reliable way to open a file or URL and to close the application.