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

Definite un-assignment check fails in default-less switch

XMLWordPrintable

    • generic
    • generic

      This program should fail to compile but in fact succeeds:

      class badswitch {
      void f(int e) {
      final int f;
      switch (e) {
      case 1:
      f = 2;
      break;
      }
      f = 3;
      }
      }

            wmaddoxsunw William Maddox (Inactive)
            jrose John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: