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

final var init'd with constant is a constant (DA versus switch)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools
    • generic
    • solaris_8

      javac fails jacks test case 16.2.8-final-4; the underlying symptom
      is reproduced as follows:

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: