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

Fold i18n.jar back into classes.zip for beta3

    XMLWordPrintable

Details

    • 1.2beta3
    • sparc
    • solaris_2.6
    • Not verified

    Description

      JDK version:JDK-1.2beta3-H
      OS:Solaris 2.6
      Platform: Sparc 5
      Locale:zh

      If we load a class from a jar file, there will cause a converter problem.
      Following is a short program.
      ===============================t.java====================================
      import java.util.*;


      public class t {
      public static void main(String args[]) {
      byte b[] = "‚CC".getBytes();
      String cc = null;
      try {
      cc = new String(b,"GB2312");
      } catch (Exception ex) {
      System.out.println(ex);
      System.exit(0);
      }
      System.out.println("OK");
      }
      }
      =========================================================================
      Take as the following steps:

      javac t.java
      java t

      OK

      jar cvf tt.jar t.class
      rm t.class
      java -classpath ${CLASSPATH}:./tt.jar t

      java.io.UnsupportedEncodingException



      jim.hu@prc 1998-02-23

      Attachments

        Activity

          People

            apalanissunw Anand Palaniswamy (Inactive)
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: