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

invocation of java.text API method setDecimalFormatSymbols(null)

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: kaC94536 Date: 11/19/99



      The following test causes Linux VM crashes, which is run with JIT.

      This bug can be reproduced in
      api/java_text/DecimalFormatSymbols/index.html#SetGet JCK test

      ----------------------------- test.java ------------------------

      import java.text.*;

      public class test {
          static DecimalFormatSymbols getDFS() {
              DecimalFormatSymbols dfs = new DecimalFormatSymbols();
              return dfs;
          }

          public static void main( String[] argv ) {
              DecimalFormat df = new DecimalFormat();
              DecimalFormatSymbols dfs = getDFS();
              df.setDecimalFormatSymbols(dfs);
              df.setDecimalFormatSymbols(null);
              System.out.println("OK.");
          }
      }

      -------------------------------- output --------------------------

      linux-2 kdos/test> /public/jdk/jdk1.2.2/linux/bin/java -fullversion
      java full version "1.2.2-D"
      linux-2 kdos/test> /public/jdk/jdk1.2.2/linux/bin/java
      -Djava.compiler=javacomp test
      Segmentation fault
      linux-2 kdos/test>

      ------------------------------------------------------------------

      Being run without JIT VM does everything well:

      -------------------------------- output --------------------------

      linux-2 kdos/test> /public/jdk/jdk1.2.2/linux/bin/java -Djava.compiler=none
      test
      Warning: JIT compiler "none" not found. Will use interpreter.
      OK.
      linux-2 kdos/test>

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

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hongzh Hong Zhang
                Reporter:
                kanisimosunw Konstantin Anisimov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: