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

get different results with jit when test throws exception when executed

XMLWordPrintable

    • jit
    • x86
    • windows_nt

      without jit it generates the desired output.

      [5/17 sadhana]

      :::::::::::::
      hydra_diff_output
      ::::::::::::::
      1,2c1,2
      < java.lang.ArrayStoreException
      < at bug47.main(bug47.java:25)
      ---
      > PANIC
      > never jumped back to InvokedCompiledMethod


      $cat bug47.java
      //****************************************************
      //
      // Copyright (c) 1994 by FirstPerson, Inc.
      // All rights reserved
      //
      // @(#)bug47.java 1.3 95/01/31 4/22/94
      //
      // bug 47 -- Java Compiler
      //
      // Stores into elements of array-of-nonprimitive type always
      // need to typecheck
      //
      //****************************************************

      class Foo {};
      class Bar {};

      class bug47 {
              public static void main( String s[] )
              {
                  Foo foo_array[] = new Foo[10];
                  Object object_array[] = foo_array;

                  foo_array[0] = new Foo();
                  object_array[1] = new Object(); // should be illegal
                  object_array[2] = new Bar(); // should be illegal
              }
      }

      ::::::::::::::
      bug47.java.pass
      ::::::::::::::
      java.lang.ArrayStoreException
              at bug47.main(bug47.java:25)


      $ more *tlog
      ##### bug47 java_run.sh
       hydra_javac.sh
      f:/jdk1.0.2_jit/build/win32/bin/javac_g bug47.java > bug47.java
      c.out 2>&1
      f:/jdk1.0.2_jit/build/win32/bin/jitc_g -xarch=x86 bar.class
      bug47.class
      foo.class > bug47.jitc.out 2 >& 1
      hydra_resolve
      f:/jdk1.0.2_jit/build/win32/bin/java_g -Djava.compiler=JIT bug47
       >> bug47.java.out 2>&1
      PANIC
      never jumped back to InvokedCompiledMethod
      hydra_resolve

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: