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

ExceptionInInitializerError not always thrown.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.3
    • hotspot
    • None
    • x86
    • windows_95



      Name: rlT66838 Date: 08/07/97


      class Test {
         private static boolean[] a;
         private static int a0() {
            if (a[0]) return -1;
            else return 1;
         }
         final private static int i = a0();
         public static void main(String args[]) {
            System.out.println(i);
         }
      }

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

            sliangsunw Sheng Liang (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: