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

1.5 vm crashes when started with file.encoding=cp037

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P1 P1
    • None
    • 5.0
    • core-libs

      I have a class that simply prints "hello world" to sys.out. When I execute it with the 1.4.1 JDK and set the file.encoding=cp037, it appears to behave as expected. But when I execute it with the 1.4.2 or 1.5 JDK and set the file.encoding=cp037 an exception gets thrown. (see examples below).

      strongbad:/home/elambert/cp037 950 % ksh doit.sh
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
      About to run test with
      È@æ
      *****PASSED.*****

      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
      About to run test with
      Exception in thread "main" ¥KKÕâ¢ÄƤÅz@HelloWorld
      *****FAILED.*****

      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b26)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode)
      About to run test with
      Exception in thread "main" ¥KKÕâ¢ÄƤÅz@HelloWorld
      *****FAILED.*****

      To recreate this problem, simply untar the attached file (cp037.tar) and run the doit.sh script

            mr Mark Reinhold
            elambertsunw Eric Lambert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: