JDK-8041987 : [macosx] setDisplayMode crashes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2014-04-28
  • Updated: 2014-11-06
  • Resolved: 2014-04-28
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 JDK 9
7u75Resolved 8u11Fixed 9 b15Fixed
Description
The call to setDisplayMode could crash. The problem is that it's not retaining the closestMatch reference that is used inside a block. Blocks do not automatically retain core foundation objects.
Comments
The fix of JDK-8041572 needs a 7u(75) back port of this. Otherwise we will see a regression. Mikhail is working on the backport.
30-10-2014

SQE OK to take this fix. Please see SQE approval comment for JDK-8041572
12-05-2014

Are the backport to 8 needed? ready?
07-05-2014

Critical request justification: Issue impact: this fix is required to back port JDK-8041572 which is a critical issue for Netbeans. Fix risks: low, the fix is small and easy. Webrev: http://cr.openjdk.java.net/~pchelko/9/8041987/ 9 changeset: http://hg.openjdk.java.net/jdk9/client/jdk/rev/4fc46640afa1
07-05-2014

This fix must go together with JDK-8041987 as JDK-8041987 made this crash possible. JDK-8041987 port was requested by Netbeans as it makes NB completely unusable.
28-04-2014