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

Definition of TextAttribute.RUN_DIRECTION_LTR/RTL values are incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs
    • 2d
    • generic
    • generic

      In the source code (java.awt.font.TextAttribute), they are defined as:

          /**
           * Left-to-right run direction.
           * @see #RUN_DIRECTION
           */
          public static final Boolean RUN_DIRECTION_LTR = new Boolean(false);

          /**
           * Right-to-left run direction.
           * @see #RUN_DIRECTION
           */
          public static final Boolean RUN_DIRECTION_RTL = new Boolean(true);

      But in the javadoc spec (TextAttribute.RUN_DIRECTION), it says:

          Constants
          RUN_DIRECTION_LTR = true, RUN_DIRECTION_RTL = false

      To keep the compatibility, we need to align the spec to the implementation.

      ###@###.### 2003-04-18

            peytoia Yuka Kamiya (Inactive)
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: