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

garbage on awt.Canvas,Button,Textfield...

XMLWordPrintable


      Tested bundle: j2sdk-1_4_0-beta_refresh-bin-b74-solsparc-01_aug_2001.sh
      Tested enviroment: ko/ solaris 8 /sun4u

      From awttest application, when you input korean characters on command line and then delete the last character, the space from command line is displayed garbage on java.awt.Canvas, Label, Button, Fextfield...

      When i ran this application on solaris2.9, i got the following error messages :
         Exception in thread "main" java.lang.Error: Converter malfunction: sun.io.ByteToCharEUC_KR
              at java.lang.StringCoding$ConverterSD.decode(StringCoding.java:123)
              at java.lang.StringCoding.decode(StringCoding.java:189)
              at java.lang.StringCoding.decode(StringCoding.java:195)
              at java.lang.String.<init>(String.java:362)
              at java.lang.String.<init>(String.java:376)
      Caused by: sun.io.MalformedInputException
              at sun.io.ByteToCharDoubleByte.flush(ByteToCharDoubleByte.java:51)
              at java.lang.StringCoding$ConverterSD.decode(StringCoding.java:120)
              ... 4 more


      How to reproduce :

      1) get awttest.class file from /net/tugrik/export/home1/JDK/test_suites/l10n_suites/awt/classes

      2) enter $java awttest -command [some korean characters],
         and delete some of korean characters from the command line,
         then hit "return key" to run the application.
      3) Then the java awttest application displays garbage on awt.Canvas, Label, Button, Fextfield...

         

            mfang Michael Fang (Inactive)
            sansunw Song An (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: