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

underlining issues in interactive JCK test JTextPaneTests when spaces are used

    XMLWordPrintable

    Details

      Description

      Wrom: VFVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRW

      Kirill,

      I wanted you to be aware of a minor issue with some of the JCK15
      JTextPaneTests. We do not consider this a blocking issue as the
      behavior on Windows exactly matches what we see on Mac OS X. The
      problem is in the JDK, not in the tests, as evidenced by the behavior
      also matching in the StylePad example application.

      The problem is an inconsistent behavior of text underlining under
      certain circumstances, usually involving blanks in a line of text. We
      think this is already covered in Sun bugs 6257873 and 4906045. The
      only reason this even comes up as a JCK issue is because of the text
      in the JCK test stating "verify the JTextPane...displays text
      underlined when text is typed in." Since text is not always
      underlined, one of our testers thought a test failure might have been
      involved.

      To reproduce the bug:
      1) In the JCK15, run JTextPaneTest0001
      2) The text in the JCK test says "Please verify that the JTextPane
      shown below displays text underlined when text is typed in."
      3) Type 4 spaces and hit Enter, notice there is no underlining
      4) Type 2 spaces on next line, notice the underline, type "a"
      character and hit Enter
      5) Notice the underlining disappears.
      6) Type in any text and hit Enter - the underline remains while you
      are typing the text but as soon as you hit Enter key, the underline
      disappears.
      7) This bug occurs in other JCK interactive tests like
      JTextPaneTest0009 and JTextPaneTest0012
      8) This bug also occurs in StylePad Swing application.

      We are tracking this via our Radar bug 4097235. Except for making you
      aware of the issue, I don't think any further action is required.
      Perhaps, if the bug in the JDK isn't fixed, you might consider
      wording the text in the JCK test differently, or adding a reference
      to the known bugs.

      - Barry -

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              idk Igor Kushnirskiy (Inactive)
              Reporter:
              ksoshals Kirill Soshalskiy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: