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

(cs) print_chars_02_x (pm) test throws Unexpected Exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • core-libs
    • x86, sparc
    • linux, solaris, solaris_8

      TEST : plumhall-99a/jvs/io/PrintStream/println_chars_02_x
      TestBase : /net/sqesvr.eng/export/vsn/VM/testbase/testbase_vm
      Mode : -Xcomp, -Xmixed, -Xint
      Platform : Solsparc 5.8, 5.9, solx86, linux RH 6.2
      JAVA_HOME : /net/sqesvr.eng/export/vsn/VM/merlin/weekahead/jdk/latest/{OS}

      Steps to reproduce
      1) cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/{Buid}
      2) ksh doit

      {OR}
      run the following command-line.
      set JAVA_HOME to /net/sqesvr.eng/export/vsn/VM/merlin/weekahead/jdk/latest/{OS}

      ${JAVA_HOME}/bin/java -server -Xint -classpath .:/net/sqesvr.eng/export/vsn/VM/testbase/testbase_vm/src/plumhall-99a/classes jvs.io.PrintStream.print_chars_02_x.print_chars_02_x

      Output:
      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Server VM (build 20010524124025.jcoomes.baseline-debug, interpreted mode)

      *** JVS(R): The Plum Hall Test Suite for The Java(tm) Language, Util(513)
      #Begin Case (jvs.io.PrintStream.print_chars_02_x.print_chars_02_x)
      #Reached first test (line 62)

      Unexpected Exception java.lang.ArrayIndexOutOfBoundsException

      *****************************************************************
      NOTE: Test passes with ladybird & the output is follwed by.
      *****************************************************************
      Output:
      java version "1.3.1-rc2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc2-b23)
      Java HotSpot(TM) Server VM (build 1.3.1-rc2-b23, interpreted mode)

      *** JVS(R): The Plum Hall Test Suite for The Java(tm) Language, Util(513)
      #Begin Case (jvs.io.PrintStream.print_chars_02_x.print_chars_02_x)
      #Reached first test (line 62)

      #End Case: jvs.io.PrintStream.print_chars_02_x.print_chars_02_x,7,0

      *** 7 Successful test items in print_chars_02_x ***
      *** 0 Errors detected in print_chars_02_x ***
      *** 7 Total test items in print_chars_02_x ***




      Use this testcase to attached to re-produce i18n issue

      import java.io.*;


      public class F {

          public static void main(String[] args) {

      char[] obj = {(char) 0xAAcf, (char) 0xFFF0, (char) 0x0E2E};
      System.out.println("obj.length=" + obj.length);

      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      PrintStream out = new PrintStream(baos);
      out.print(obj);
      System.out.println("baos.size()=" + baos.size());
          }
      }

      gary.collins@East 2001-06-12

            mr Mark Reinhold
            spothugasunw Satheesh Pothuganti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: