JDK-7124400 : [macosx] CGraphicsDevice.getConfigurations() returns reference to member (does not copy configs)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2012-06-20
  • Resolved: 2012-06-20
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.
7u6 b13Fixed 8Fixed
http://java.net/jira/browse/MACOSX_PORT-244 submitted 2011/08/08 by Taras Ledkov
Target build: b202
Keywords: test-fail-macos
Test (regression):
Test verifies that list of supported graphics configurations can not be changed via modification of elements of an array returned by getConfiguration() method.
But it waits GraphicsConfiguration[] instead of CGraphicsConfig[].
Also it waits, that changes into retrieved array have not affect on GraphicsDevice (it seems to me).
Please see src/macosx/classes/sun/awt/CGraphicsDevice.java (lines: 43, 69)
Test passed on JDK6

SUGGESTED FIX http://cr.openjdk.java.net/~bae/7124400/7u6/webrev.00/

EVALUATION Author: Taras Ledkov Date: 20/Sep/11 01:24 PM Please take a look at suggested hot fix in attachment (<span class=&quot;nobr&quot;><a href=&quot;/jira/secure/attachment/47304/47304_MACOSX_PORT-244.diff&quot; title=&quot;MACOSX_PORT-244.diff attached to MACOSX_PORT-244&quot;>MACOSX_PORT-244.diff<sup><img class=&quot;rendericon&quot; src=&quot;/jira/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span>). Author: Mike Swingler Date: 21/Sep/11 06:48 AM Looks fine to me.