JDK-8352999 : [macOS] Conditional behavior by directly querying the Objective-C call stack
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • CPU: generic
  • Submitted: 2025-03-26
  • Updated: 2025-03-31
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
In the Mac glass code the routine _setWindowFrameWithRect:withDisplay:withAnimate: behaves differently whether it's called from _restorePreZoomedRect or not. It determines this by directly inspecting the Objective-C call stack i.e. it calls NSThread.callStackSymbols and looks at the top of the stack. Maybe I'm missing something but as these are all internal calls it would be far cleaner to add an additional parameter to _setWindowFrameWithRect. In any case this requires some additional investigation.


Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1749 Date: 2025-03-31 18:29:21 +0000
31-03-2025