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

Regression sun/nio/cs/TestTrailingEscapesISO2022JP.java is failing

XMLWordPrintable

    • mantis
    • generic
    • generic
    • Verified

      ===============================================================================
      Regression test suite for hopper fcs build 21:
      /java/re/jdk/1.4.1/promoted/fcs/b21/ws/j2se/test
      JDK : Hopper fcs b21
      OS : Windows 2000 Prof. japanese / Solaris 9 sparc(euc) / RedHat Linux 7.2 eucJP
      Test case : test/sun/nio/cs/TestTrailingEscapesISO2022JP.java
      ===============================================================================

      Running TestTrailingEscapesISO2022JP.java, it thorws sun.io.MalformedInputException.

      Steps to reproduce:
      1. install j2sdk1.4.1 fcs b21.
      2. Get regression test case from
         /java/re/jdk/1.4.1/promoted/fcs/b21/ws/j2se/test
      3. launch test/sun/nio/cs/TestTrailingEscapesISO2022JP.java

      Then, you can see the problem as below.
      ==============================================================================
      % java TestTrailingEscapesISO2022JP
      4096
      4096
      4096
      1894
      Exception in thread "main" sun.io.MalformedInputException
              at sun.io.ByteToCharISO2022JP.flush(ByteToCharISO2022JP.java:37)
              at sun.nio.cs.StreamDecoder$ConverterSD.flushInto(StreamDecoder.java:264)
              at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:288)
              at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
              at java.io.InputStreamReader.read(InputStreamReader.java:167)
              at TestTrailingEscapesISO2022JP.main(TestTrailingEscapesISO2022JP.java:33)

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

      Though I'm not sure, it seems that this failure is caused by test case or data problem.
      As this test case was PASSED when I did the regression test suite for b19 on the same machine, I compared two file(TestTrailingEscapesISO2022JP.java, ISO2022JP.data which is the input file for this test program) for b21 with b19.

      Here is a result of comparison of b21 and b19:
      - TestTrailingEscapesISO2022JP.java ---> the same
      - ISO2022JP.data ---> not the same

      I replaced the ISO2022JP.data file for b21 with for b19 and ran again.
      That is to say, I ran TestTrailingEscapesISO2022JP.java for b21 with ISO2022JP.data file for b19 using hopper fcs b21.
      Then, this test case is PASSED.

      Therefore, I think this failure is caused by ISO2022JP.data.

      Further, I tried this test case for b19 using hopper fcs b21 and this test case is PASSED.
      So , I think this failure is test bug, not java problem.

      * I attached the log file .jtr.
      ==============================================================================

      I run regression test for Mantis b02 on Solaris x86 8.
      This bug was NOT reproducible.
      I confirmed in Solaris sparc 9, 10 and x86 8, windows 2000 Prof ja.

      Although I'm not sure, it seems that the reason which this bug is not reproducible is becasue that the ISO2022JP.data was updated for mantis.

      - data file for Hopper b21
        -r--r--r-- 1 rs88024 staff 62441 Aug 30 10:50 ISO2022JP.data
      - data file for Mantis b02
        -r--r--r-- 1 rs88024 staff 62444 Sep 18 23:55 ISO2022JP.data


      I think this bug can be closed.


      [###@###.###2002-10-02]
      ==============================================================================

            ilittlesunw Ian Little (Inactive)
            rsuzukisunw Rieko Suzuki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: