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

definite assignment versus switch

    XMLWordPrintable

Details

    • mantis
    • generic
    • solaris_8
    • Verified

    Description

      The following bug was detected by jacks test 16.2.8-final-1:

      class T {
      public static void main(final String[] args) {
          switch(args.length) {
                  case 0:
                      final int b;
                      b = 0;
                      break;
                  case 1:
                      b = 1;
          }
      }
      }

      Attachments

        Activity

          People

            gafter Neal Gafter
            gafter Neal Gafter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: