Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4787241

java.awt.Color caches context objects permanently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.1
    • client-libs
    • None
    • 2d
    • generic
    • generic

      The java.awt.Color class caches instances of its PaintContext when anyone
      calls the createContext method. While this does not normally occur during
      typical rendering operations since the underlying graphics code special
      cases the Color object, it could potentially lead to excess resource
      consumption in an application that either invokes the createContext method
      directly or which uses a-typical rendering modes that don't special case
      the Color object.

            serb Sergey Bylokhov
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: