ExceptionInInitializerError not always thrown.

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.3
    • Component/s: 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);
         }
      }

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: