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

definite assignment versus switch

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic
    • OS:
      solaris_8
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: