-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
generic, windows_95
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
======================================================================
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
======================================================================
- duplicates
-
JDK-4106621 TextArea.append only appends one character
-
- Closed
-
-
JDK-4118915 TextArea's method append can not work correctly in Win95.
-
- Closed
-
- relates to
-
JDK-4071976 Win95: OutputApplet shows garbage when run the JCK112a java_awt_manual tests
-
- Closed
-