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

Regression sun/io/CharToByteConverter/MalformedSurrogates.java is failing

    • b30
    • x86
    • solaris_9
    • Verified

      ======================================================================
      JDK : Mantis jdk1.5.0 b20
      OS : Solaris 9 IA(UR4) / Solaris 10 Sparc(b41)
      Locale : ja_JP.PCK
      Regression test case: sun/io/CharToByteConverter/MalformedSurrogates.java
      =======================================================================

      This test cases is FAILED with b20 on ja_JP.PCK locale
       
      The error messages are isplayed as bleow;
      =======================================================================
      #section:script_messages
      ----------messages:(1/95)----------
      JDK under test: java full version "1.5.0-beta-b20" (/home/tokunaga/tiger/b20-sparc/j2sdk1.5.0)

      #section:build
      ----------messages:(3/105)----------
      command: build MalformedSurrogates
      reason: Named class compiled on demand
      elapsed time (seconds): 0.048
      result: Passed. No need to compile: MalformedSurrogates.java

      #section:main
      ----------messages:(3/137)----------
      command: main MalformedSurrogates
      reason: Assumed action based on file name: run main MalformedSurrogates
      elapsed time (seconds): 2.209
      ----------System.out:(1/29)----------
      Testing string conversion...
      ----------System.err:(23/853)----------
      9
      [0]=c=99
      [1]=!=33
      [2]=)=41
      [3]=!=33
      [4]=)=41
      [5]=e=101
      [6]=f=102
      [7]=g=103
      [8]=h=104
      java.lang.Exception: Bad string conversion for bad surrogate
      at MalformedSurrogates.main(MalformedSurrogates.java:31)
      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:549)

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

      STATUS:Failed.`main' threw exception: java.lang.Exception: Bad string conversion for bad surrogate
      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Bad string conversion for bad surrogate


      test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Bad string conversion for bad surrogate
      =======================================================================


      This is PASSED with b19 on ja_JP.PCK loacle, so this bug starts from b20.
      This is PASSED with b20 on ja locale.
      The PASSED messages are as below;
      =======================================================================
      #section:script_messages
      ----------messages:(1/85)----------
      JDK under test: java full version "1.5.0-beta-b20" (/home/tokunaga/tiger/j2sdk1.5.0)

      #section:build
      ----------messages:(3/106)----------
      command: build MalformedSurrogates
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0030
      result: Passed. No need to compile: MalformedSurrogates.java

      #section:main
      ----------messages:(3/137)----------
      command: main MalformedSurrogates
      reason: Assumed action based on file name: run main MalformedSurrogates
      elapsed time (seconds): 2.002
      ----------System.out:(4/68)----------
      Testing string conversion...
      8
      Testing flush....
      Testing convert...
      ----------System.err:(17/132)----------
      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]=?
      [4]=e
      [5]=f
      [6]=g
      [7]=h
      STATUS:Passed.
      result: Passed. Execution successful


      test result: Passed. Execution successful
      =======================================================================





            ilittlesunw Ian Little (Inactive)
            mtokunagsunw Miki Tokunaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: