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

Reg-test:/sun/io/CharToByteConverter/MalformedSurrogates.java failed in utf8

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Verified

      Description

      Regression test:/sun/io/CharToByteConverter/MalformedSurrogates.java failed with jdk1.4 rc b89 on Solaris 9 in zh_CN.utf8 and zh_CN.bg18030.

      The test failed in zh_tw.utf8 and ja_JP.utf8, too.

      The message in UTF-8 is as below:

      ----------System.err:(32/925)*----------
      7
      [0]=c=99
      [1]=?=63
      [2]=?=63
      [3]=e=101
      [4]=f=102
      [5]=g=103
      [6]=h=104
      [0]=a
      [1]=b
      [2]=c
      [3]=\ufff0
      [4]=\uff90
      [5]=\uff80
      [6]=\uff80
      [7]=e
      [8]=f
      [9]=g
      [10]=h
      java.lang.Exception: Bad string conversion for good surrogate
              at MalformedSurrogates.main(MalformedSurrogates.java:32)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
              at java.lang.Thread.run(Thread.java:536)

      JavaTest Message: Test threw exception: java.lang.Exception: Bad string conversion for good surrogate
      JavaTest Message: shutting down test

      --------------------------------------------------------------------------------
      The message in zh_CN.gb18030 is as below:

      ----------System.err:(20/826)----------
      6
      [0]=c=99
      [1]=?=63
      [2]=e=101
      [3]=f=102
      [4]=g=103
      [5]=h=104
      java.lang.Exception: Bad string conversion for bad surrogate
              at MalformedSurrogates.main(MalformedSurrogates.java:22)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
              at java.lang.Thread.run(Thread.java:536)

      JavaTest Message: Test threw exception: java.lang.Exception: Bad string conversion for bad surrogate
      JavaTest Message: shutting down test



      ###@###.### 2001-12-17

      ------------------------------
      verified the fix with jdk1.4.1 b14 on Solaris 9 in ja, zh_CN, zh_TW UTF-8. The test still failed with gb18030. I"ll file a separate bug on the gb18030.



      ###@###.### 2002-06-07

        Attachments

          Activity

            People

            Assignee:
            ilittlesunw Ian Little (Inactive)
            Reporter:
            knakayamsunw Keiko Nakayama (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: