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

Sergey Bylokhov serb at openjdk.java.net
Wed Mar 3 06:08:05 UTC 2021


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.

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

Commit messages:
 - Update ColorSpace.java

Changes: https://git.openjdk.java.net/jdk/pull/2801/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2801&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8262915
  Stats: 53 lines in 1 file changed: 5 ins; 24 del; 24 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2801.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2801/head:pull/2801

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


More information about the 2d-dev mailing list