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

invocation of Boolean.getBoolean(null) crushes VM

    XMLWordPrintable

Details

    • b04
    • x86
    • linux
    • Verified

    Description



      Name: kaC94536 Date: 11/12/99



      The following test crushes Linux VM:

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

      public class test {

        public static void main( String[] argv ) {
          try {
              Boolean.getBoolean(null);
          } catch(NullPointerException e) {
              System.out.println("Ok");
          }
        }
      }

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

      $ /public/jdk/jdk1.2.2/linux/bin/java -fullversion
      java full version "1.2.2-RC1"
      $ /public/jdk/jdk1.2.2/linux/bin/java -Djava.compiler=javacomp test
      Segmentation fault (core dumped)
      $

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

      The same crashe occur when we invoke methods Integer.getInteger and
      Long.getLong with null argument.

      Being run without JIT VM does everithing well:

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

      $ /public/jdk/jdk1.2.2/linux/bin/java test
      Warning: JIT compiler "sunwjit" not found. Will use interpreter.
      Ok
      $

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

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

      Attachments

        Activity

          People

            caustinsunw Calvin Austin (Inactive)
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: