[OpenJDK 2D-Dev] RFR: 8262915: java.awt.color.ColorSpace.getName() is not thread-safe

Alexander Zvegintsev azvegint at openjdk.java.net
Wed Mar 3 19:47:49 UTC 2021


On Wed, 3 Mar 2021 03:55:42 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> The java.awt.color.ColorSpace.getName()  method does not use any kind of synchronization to properly initialize and use the static cache for the color components names.
>
> src/java.desktop/share/classes/java/awt/color/ColorSpace.java line 454:
> 
>> 452:      * Returns the name of the component given the component index.
>> 453:      *
>> 454:      * @param  component the component index
> 
> All other methods use the "component" as a name of the component index.

I guess it will require a CSR request.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2801


More information about the 2d-dev mailing list