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

TextArea.append doesn't work on Windows 95 (after initial screen drawing)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      generic, windows_95

      Description

      Running the attached example class "AppendTest" fails on Windows 95 with the
      last JDK 1.2 promoted build for EA2 release. The failure is that all four
      lines appended to the TextArea get added; the two lines that are added after
      the parent frame is drawn (and the TextArea peer created) only get their first
      characters added to the TextArea.

      I think that this has something to do with passing a Unicode (16-bit char)
      string to an OS call that is expecting an 8-bit string. This is why only
      the first character is appended: it will be the first "byte", followed by
      a terminating zero. The relevant code would be in
      src/win32/native/sun/windows/awt_TextArea.cpp.


      Name: asC58863 Date: 10/28/97


       
      In the JCK-114a folow tests do not work properly :

      tests/api/java_awt/interactive/CheckboxGroupTest.java
      tests/api/java_awt/interactive/CheckboxMenuItemTest.java
      tests/api/java_awt/interactive/CheckboxTest.java
      tests/api/java_awt/interactive/ChoiceTest.java
      tests/api/java_awt/interactive/ColorTest.java
      tests/api/java_awt/interactive/ContainerTest.java
      tests/api/java_awt/interactive/CursorTest.java
      tests/api/java_awt/interactive/DialogTest.java
      tests/api/java_awt/interactive/DimensionTest.java
      tests/api/java_awt/interactive/FontTests.java
      tests/api/java_awt/interactive/FrameTest.java
      tests/api/java_awt/interactive/InsetsTest.java
      tests/api/java_awt/interactive/ListTest.java
      tests/api/java_awt/interactive/MenuBarTest.java
      tests/api/java_awt/interactive/MenuItemTest.java
      tests/api/java_awt/interactive/MenuTest.java
      tests/api/java_awt/interactive/PointTest.java
      tests/api/java_awt/interactive/PolygonTest.java
      tests/api/java_awt/interactive/RectangleTest.java
      tests/api/java_awt/interactive/ScrollPaneTest.java
      tests/api/java_awt/interactive/ScrollbarTest.java
      tests/api/java_awt/interactive/TextAreaTest.java
      tests/api/java_awt/interactive/TextComponentTest.java
      tests/api/java_awt/interactive/WindowTest.java

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ehawkessunw Eric Hawkes (Inactive)
              Reporter:
              peterjones Peter Jones
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: