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

RFE: Constants should be upper case in java.awt.Color

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0_01
    • client-libs
    • beta
    • generic
    • generic



      Name: rmT116609 Date: 01/23/2001


      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)



      In the Java Language Specification v. 1.0 section 6.8.5 constants are defined
      as: "a sequence of one or more words, acronyms, or abbreviations, all
      uppercase".

      The Color constants in java.awt.Color should be deprecated and new ones
      introduced like:
      public final static Color GREEN = new Color(0, 255, 0);
      instead of:
      public final static Color green = new Color(0, 255, 0);

      I realize that this has been wrong since JDK 1.0, but there is no time like the
      present to fix it ;-)
      (Review ID: 115629)
      ======================================================================

            bchristi Brent Christian
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: