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

color model is public static in TexturePaintContext. Shouldnt it be final?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs
    • 2d
    • generic
    • generic

      I've run JSAT (Java Security-Audit Tool) on some of AWT source files and found
      that xrgbmodel (the color model) is non-final public static in
      java.awt.TexturePaintContext and consequently any client which has access to the
      PaintContext can modify it. Is this intentional? I'm not sure what
      the consequences of this might be; Still, if the intention is to let
      users modify the color model, this should be done via an accessor
      method.

            flar Jim Graham
            dhendlersunw Danny Hendler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: